5min chapter

Frontend First cover image

Saying goodbye to static generation

Frontend First

CHAPTER

Using a Blocking Script Tag to Generate a Site

When we're generating the site, we're generating one HTML file. We include everything that non-subscribers should see in it and everything that subscribers should see. If you don't have a subscription, the paid version of the site is still there. It's just hidden from you. So again, people use this as kind of like a little technique for just if you want to augment what is typically a static site with a little bit of dynamic behavior, you can do it. And even in our default kit project, we do that sometimes for like seeing the user's preference on dark mode.

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode