3 ms·
> if you need performance, don’t use an SPA you can make a SPA using vanilla JS, without any bundle using plain es6 module and be perfectly fine. I made one su
by mickael-kerjean 3y ago
> if you need performance, don’t use an SPA
you can make a SPA using vanilla JS, without any bundle using plain es6 module and be perfectly fine. I made one such scaffold to showcase people how to do exactly that: https://mickael-kerjean.github.io/skeleton/example/index.html https://mickael-kerjean.github.io/skeleton/example/index.htm...
- earthboundkid 3y agoOkay, but it will be slower to first render than a normal HTML page because you have to download the HTML plus execute the JS vs just download the HTML. Again, that’s fine, but it’s an inescapable part of the trade off.
- mickael-kerjean 3y agoDoesn't have to be, it's not very popular these days but we used to talked about progressive enhancement, the idea being you should prerender your thing in HTML and spice it up with JS, this is also covered in the POC and is unfortunatly something that got lost over time in favor of "modern framework" and the new meta everything fad
- earthboundkid 3y agoProgressive enhancement is, by definition, not a SPA.