Headless Chrome can be a drop-in solution for turning dynamic JS sites into static HTML pages. Running it on a web server allows you to prerender any modern JS features so content loads fast and is indexable by crawlers.
If SEO has served me well, you landed on this article for one of two reasons. First, you’ve built a web app and it’s not being indexed the search engines! Your app might be a SPA, PWA, using vanilla JS, or built with something more complex like a library or framework. To be honest, your tech stack doesn’t matter. What matters is that you spent a lot of time building Awesome Web Thing and users are unable to discover it. The other reason you might be here is because some articles out on The Web mentioned that server-side rendering is good for performance. You’re here for that quick win to reduce JavaScript startup cost and improve first meaningful paint.