Re:Astro: Ship Less JavaScript
by miltonsopus on Tuesday June 08, 2021 @06:59PM
(#27442183)
Yes, with SvelteKit you can use the static adapter to generate static html files for your routes. It's also possible to control this on a page by page basis.
[ Parent
| on HN ]
Thanks.
What if only some components in my page require Javascript? Can the same "partial hydration" be achieved?
Re:Astro: Ship Less JavaScript
by MatthewPhillips on Tuesday June 08, 2021 @09:42PM
(#27443288)
No. Svelte are big proponents of the SPA pattern so I'm doubtful they would ever build something like this.