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
October 25, 2015 at 9:30 am
#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 likemain.css
. And then you navigate away from that page to something likeabout.html
, themain.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, toabout.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
.