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
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.htmland you link to a resource like
main.css. And then you navigate away from that page to something like
main.csswill be loaded from cache. Essentially speeding things up. No additional network requests.
- When you inline the whole CSS, and visit
index.htmlthat response is cached sure, but when you navigate away from that page, to
about.htmlthe 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