4 ms·
> by making an AJAX request for any navigation and replacing the page body (instead of doing a full page reload). This sounds like the "pjax" idea. I did this
by blattimwind 8y ago
> by making an AJAX request for any navigation and replacing the page body (instead of doing a full page reload).
This sounds like the "pjax" idea. I did this recently in a prototype; it's about 30-40 lines of JS (not including a shim for the pushstate-API) and maybe a dozen lines in the backend. It just works(R), and makes things as fast as the backend can deliver stuff. Much faster than stuffing hundreds of kB of framework CSS/JS down the browsers throat for each click, and far more simple than any JS-SPA-frontend-bingo-stack.