noscript-gen
Better SEO for JS sites with Puppeteer and jsdom pre-rendering
The problem
A modern and dynamic JS Web App that must be wheel crawled and indexed by search engines (eg.: Google). Common SSR is not an option because it must be keeped client only (served by CDN) and updated with REST APIs.
Our solution
As Google recommends here:
https://support.google.com/webmasters/answer/66353?hl=en&ref_topic=6001971
"Place the same content from the JavaScript in a <noscript>
tag.
If you use this method,
ensure the contents are exactly the same as what’s contained in the JavaScript,
and that this content is shown to visitors who do not have JavaScript enabled
in their browser."
Pre-render the site, get the rendered content and merge to original HTML file served to clients.