4 ms·
So in the past, you'd just render your template server-side and send the resulting HTML to the user. Easy peasy. Then many developers switched to single page a
by sciurus 10y ago
So in the past, you'd just render your template server-side and send the resulting HTML to the user. Easy peasy.
Then many developers switched to single page applications where users download the template and the javascript code and data to populate it, then render the template client-side.
As Varnish Software points out in this blog post, SPAs often have terrible performance, especially on mobile. What they seem to be suggesting as the fix is a strange hybrid: Your application server continues to serve the unrendered template and data to populate it, your varnish cache renders the template, and the user receives HTML.