Current time: 02-28-2021, 06:02 AM Hello There, Guest! (LoginRegister)

Post Reply 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
In-Lining CSS on First Page View
02-26-2015, 01:07 AM
Post: #2
RE: In-Lining CSS on First Page View
Depends on how big your CSS is.

It's a fairly old technique that works well (I believe Yahoo was one of the first to do it ~8-10 years ago). You can generalize it by having a hidden iFrame that you load after onload that is used to cache critical resources and have that frame request set a cookie (including the version of the cached bundle). Then on page views if the cookie is present you don't inline (or include the pre-caching code) and if the cookie is not present you do the inline hop.

As you mention, even in the case where the files are cleared but the cookies are not (rare) nothing breaks, it is just slower because it has to load the external resources like it would have if they weren't inlined.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 

Messages In This Thread
RE: In-Lining CSS on First Page View - pmeenan - 02-26-2015 01:07 AM

Forum Jump:

User(s) browsing this thread: 1 Guest(s)