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. |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
In-Lining CSS on First Page View - freelancer-review.com - 02-26-2015, 12:43 AM
RE: In-Lining CSS on First Page View - pmeenan - 02-26-2015 01:07 AM
RE: In-Lining CSS on First Page View - freelancer-review.com - 02-26-2015, 03:46 AM
RE: In-Lining CSS on First Page View - ajm_76 - 02-26-2015, 07:00 AM
RE: In-Lining CSS on First Page View - mikefoskett - 08-01-2015, 08:00 AM
RE: In-Lining CSS on First Page View - ajm_76 - 08-03-2015, 05:49 AM
RE: In-Lining CSS on First Page View - mikefoskett - 08-15-2015, 11:43 PM
RE: In-Lining CSS on First Page View - freelancer-review.com - 02-26-2015, 08:14 AM
|
User(s) browsing this thread: 1 Guest(s)