Just like Google does it
At the beginning of this year I have quit consulting and set out to build GO2CINEMA — Fast, simple and secure way to book cinema tickets in the UK. I have done a splendid job making it fast, simple and secure. Somewhere along the way, I’ve gotten obsessed with the critical rendering path optimization ⚡️.
I have solved pre-rendering of the HTML using ūsus. ūsus renders HTML of single page applications (SPA) and inlines the CSS used to render the page. However, I did not like inlining 70 KB into every HTML document, esp. most of it being the CSS class names.
Have you ever peeked into the source code of
... read the whole story at medium.freecodecamp.org.