3 ms·
How much response time improved in the typical case? If you serve your html, JavaScript, and CSS through a CDN, the user should get those lightning quick. A dy
by megaman821 12y ago
How much response time improved in the typical case?
If you serve your html, JavaScript, and CSS through a CDN, the user should get those lightning quick. A dynamic API response should be returned faster than a dynamic full page response. Then the client-side rendering will take place, but JavaScript is pretty fast now-a-days.
Surely, this will be slower than a server rendered page, but how much slower than your typical RoR site?
- EugeneOZ 12y agoActually sometimes it's noticeable slower. Solution for this can be entry point detached from SPA (when index.html is not part of SPA, renders on the server side and load SPA in background, while user enjoying first 2-3 seconds of reading index.html), or it can be just hidden (white page) body of document, while everything is not ready. Second variant is poor copy of usual sites loading, so detached index.html or cached data in template or even isomorphic option - they are better.