Can we move only selected css to footer without javascript?
If we use JavaScript for all css, we see delay.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | advagg-2646684-3-better-options-with-loadcss-shim.patch | 5.87 KB | mikeytown2 |
Can we move only selected css to footer without javascript?
If we use JavaScript for all css, we see delay.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | advagg-2646684-3-better-options-with-loadcss-shim.patch | 5.87 KB | mikeytown2 |
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