Closed (fixed)
Project:
Advanced CSS/JS Aggregation
Version:
7.x-2.x-dev
Component:
Modifier
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
8 Jan 2016 at 11:59 UTC
Updated:
17 Nov 2016 at 22:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
mikeytown2 commentedLooks like this is technically possible
http://stackoverflow.com/questions/4957446/load-external-css-file-in-bod...
http://stackoverflow.com/questions/8033622/css-stylesheets-at-top-or-bot...
Noted that advagg uses filamentgroup/loadCSS
https://gist.github.com/scottjehl/87176715419617ae6994
You want to inline the critical css https://www.fourkitchens.com/blog/article/use-grunt-and-advagg-inline-cr.... Another option I've been thinking of is to make the first css file blocking.
Comment #3
mikeytown2 commentedMakes loadCSS usable on any site now.
Comment #4
mikeytown2 commentedJust tried setting a cookie to get around the jarring effect that happens when using defer so it doesn't defer on second load but that doesn't work. Going to go with just this.
This works but the browser still ends up downloading the JS first.
Comment #6
mikeytown2 commented