Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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) is a great attempt to make this easy for complex web apps to do.



Oh 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!


The whole point of Rendr is you don't have to write two code paths. That's why I linked to it.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: