4 ms·
Idn, I'm not impressed with the initial load time. If that site was served as a static page that was recompiled when a new article was added, it would be signif
by jenius 13y ago
Idn, I'm not impressed with the initial load time. If that site was served as a static page that was recompiled when a new article was added, it would be significantly faster. But at the same time, subsequent loads would probably be a little slower. Which one is more worth it?
- graue 13y agoYou can do both! Prerender the front page server side, then switch to super-fast PJAX once the JavaScript is loaded. This nifty technique is called... wait for it... "progressive enhancement". Airbnb's recently released Rendr library (https://github.com/airbnb/rendr https://github.com/airbnb/rendr) is a great attempt to make this easy for complex web apps to do.
- ebiester 13y agoOh wow! I get to write two code paths! I'm so excited to do double the work for a small subset of users! Oh, and I get to test two code paths, and all of the wonderful ways they might interact!
- graue 13y agoThe whole point of Rendr is you don't have to write two code paths. That's why I linked to it.