4 ms·
If you're writing a SPA, server side rendering is probably the most important optimization you can make to speed up your application. No other optimization will
by stevebmark 9y ago
If you're writing a SPA, server side rendering is probably the most important optimization you can make to speed up your application. No other optimization will come close to the benefits of server rendering. SPAs are both slow and perceived as slow. True SPAs are only appropriate for a subset of the web where you have very specific user constraints.
- cyberpanther 9y ago> No other optimization will come close to the benefits of server rendering. "Only the Sith deal in absolutes", Obi-Wan Kenobi
- rhaps0dy 9y agoMathematicians also deal in absolutes! Not just the abs function, also proofs and counterexamples.
- wbillingsley 9y agoI have a bad feeling about this... ObiWan: deals_in_absolutes ==> Sith rhapsOdy: mathematician ==> deals_in_absolutes ---------------------------------------------- therefore ... We may have to wrap this in spoiler tags for Episode 9.
- StavrosK 9y agoThe logic is inescapable.
- Scarbutt 9y agoI may be wrong, but GMail doesn't seem to do SSR, you have that progress bar when it loads up, so is not really an essential prerequisite as you make it out to be.
- stevebmark 9y agoI agree that server side rendering of gmail would greatly speed up the load and remove the need for a progress bar. The word on the street is Gmail has too much legacy code in it to much modernizing with. It's also one of the few very special apps that users tend to keep open forever in a tab, and never do page navigation. Definitely don't use GMail as your benchmark unless you're making something as specialized and popular as what they have now.
- dgoldstein0 9y agoin my experience, a lot of SPA-like pages are slow because their authors didn't think to async-load code that they don't immediately need. When we async load the larger not-immediately-needed components, the page gets faster. Optimizing the data fetching is also important but the simple ways to support server rendering are to eliminate ajax calls for initial data fetching, which is often an improvement anyway.