4 ms·
One thing I haven't understood about JavaScript frameworks is how people go about setting meta tags for Facebook and Twitter sharing. These meta tags aren't re
by joobus 10y ago
One thing I haven't understood about JavaScript frameworks is how people go about setting meta tags for Facebook and Twitter sharing. These meta tags aren't readable by the Facebook scraper when set in JavaScript, so at least for my work, even if I do use some JavaScript framework, I also have to do some server side rendering so brands can share what they pay to share.
Maybe some people just don't care about this, and pure JavaScript works for them.
- ubersoldat2k7 10y agoThere are strategies,for this which usually involve a headless browser rendering the page for the spider. It's as cumbersome as it sounds.
- mwpmaybe 10y agoYou likely have a simple HTML page that bootstraps the SPA; just put your meta tags there! UPDATE: Ah, set in JavaScript. Yes, tricky. Reading is good.