Mononykus

source code

Mononykus: a svelte dinosaur

Partial Hydration with Svelte and Deno

Working on project build in Svelte and Deno is refreshing, because the amount of configuration is minimal, performance is excellent and results are predictable.

SvelteKit has decided to go the route of full hydration, and Astro still requires Vite and the Node ecosystem. This is a lightweight alternative to these approaches. This is mainly a way of exploring these concepts to understand what are the tradeoffs.

Here, we choose to hydrate individual “islands”, similar to the approach taken by Astro and Elder.js. For example. the greeting below responds to user input on device that have JavaScript enabled.

Well, hello there, late Cretaceous friend!
3
  • 1
  • 2
  • 3