Next, no js.

Static/inert DOM by default, opt-in SSR Hydration

This page has ZERO JavaScript - as it didn't need any

In the examples below however, JavaScript can be loaded on-demand to either hydrate the components with Preact, or just to access the markup.

Examples:

Updates:

  • Sat Feb 27th: added Formik + stress test example
  • Sun Feb 14th: added content-hashes to filenames in on-demand bundles
  • Sun Feb 14th: added vanilla-js example
  • Sun Feb 14th: added decentralised versions
  • Mon Feb 15th: added a component-level hydration example with data
  • Mon Feb 18th: Next.js + Turbo + on-demand SSR hydration