Tony Alaribe challenges common myths about multi-page applications (MPAs) and explores how modern browser technologies can enable fast, interactive, and offline-capable web applications without relying on single-page application (SPA) frameworks. Alaribe discusses advancements in service workers, caching, and cross-document transitions, offering insights into building efficient MPAs. By debunking myths like slow page transitions and the necessity of JavaScript-heavy frameworks, Alaribe highlights how developers can leverage HTML, CSS, and minimal JavaScript to create robust, user-friendly web apps in 2024.
First “myth” is wrong. Loading CSS and JS with every click isn’t about being “slow” it’s about being efficient. CSS and JS requests add a non-trivial load to the server. So if you have 10,000 clients making requests for content they already have cached (they’re just checking to see if these assets changed) then you’re wasting server resources when you could’ve just kept the single page active and requested just what you needed over an AJAX call or even better: A WebSocket.
im not aware of any content oriented websites that are switching to client rendering.
look at any news website - all rendered on backend, because it makes the most sense for composition, SEO and performance.
First “myth” is wrong. Loading CSS and JS with every click isn’t about being “slow” it’s about being efficient. CSS and JS requests add a non-trivial load to the server. So if you have 10,000 clients making requests for content they already have cached (they’re just checking to see if these assets changed) then you’re wasting server resources when you could’ve just kept the single page active and requested just what you needed over an AJAX call or even better: A WebSocket.
It’s essentially why people have moved away from server side rendering.
It is way less resource intensive to send just the data and let the client do the rendering. Both in data transfer and compute.
im not aware of any content oriented websites that are switching to client rendering.
look at any news website - all rendered on backend, because it makes the most sense for composition, SEO and performance.