4 ms·
You 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
by graue 13y ago
You 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.