December 2017
Beginner to intermediate
376 pages
7h 53m
English
Server-side rendering is a great way to increase the perception of loading speed in full-stack apps. Users get a complete page with visible content when they load your site, as opposed to an empty page that doesn't get populated until JavaScript runs.
Say we have an app built with components. If we use our browser development tool to view our page DOM after the page has loaded, we will see our fully rendered app:
<div id="app"> <ul> <li>Component 1</li> <li>Component 2</li> <li> <div>Component 3</div> </li> </ul> </div>
But if we view the source of the document, that is, index.html, as it was when sent by the server, you'll see it just has our mount element:
<div id="app"></div>
Why? Because JavaScript is responsible ...
Read now
Unlock full access