Open yaodingyd opened 2 months ago
I wonder if the perf gains come from switching to Preact, since most of the text content was already just in the index.html
, is there anything for Astro to statically generate?
I already manually converted the previous app to index.astro so in this case, perf gains mostly come from Preact. Although this site is really simple enough that we have very distinct static and dynamic split. I think adding Astro here is to future-proof any feature additions that does not have this, that we can adopt to static generation
Fix #42.
This is my attempt to update app with a lighter, more performant way framework/library. It consists two major changes:
preview site: https://flash-peach.vercel.app/
also take a look at the comparison: first image is current side, second is the astro/preact rewrite
loadtime: 400ms vs 100ms componet js load: 49.8kb vs. ~10kb (5.2+3.1+1.5)