Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS when to inline your entire stylesheet when using critical path rendering CSS Reply To: when to inline your entire stylesheet when using critical path rendering CSS

#210167
Alen
Participant

But that’s for repeat visits, what happens when the user navigates to a different part of your site.

To simplify what I’m saying:

  • When you visit for example index.html and you link to a resource like main.css. And then you navigate away from that page to something like about.html, the main.css will be loaded from cache. Essentially speeding things up. No additional network requests.
  • When you inline the whole CSS, and visit index.html that response is cached sure, but when you navigate away from that page, to about.html the whole new cache needs to be created, so you lose the benefit of cached resources.

URLs are important. You can’t create a HTML cache at /about and use it at /contact.