DEV Community

Discussion on: The Return of Server Side Routing

Collapse
 
matrium0 profile image
matrium0

Cool article!

I disagree on some points though:
While a simple page CAN be as simple as "HTML, CSS and a little JS" it's usually not that simple, unless you want to write JS like it's 1998 or ignore a big chunk of users (outdated browsers).

If you want to write modern JS with good browser support you will at least need Babel or other ways to use polyfills.

Want to use SAAS or LESS? - you probably need some sort of build pipeline.

Also SPAs handle bundling very efficient. It hits your index.html every time of course, but on returning visits usually 80-100% of the bundles will already be cached, making for a blazingly fast experience that is unachievable with pure server-side-rendering

There are more cases and it just adds up. You can implement all that yourself of course - but in the end, when i think about what I'd have to do to all by myself to come to a satisfying solution I end up creating yet another framework.

SPAs are overkill for static content pages for sure, but they are such a time safer for real applications

Collapse
 
dannydevs profile image
Daniel Ahn

thank you, i appreciate your perspective. like Ryan said, maybe Rich Harris' termed transitional apps will hit a sweet spot that will encompass a big portion of websites.

Some comments have been hidden by the post's author - find out more