Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Kinda a pain to do but has some big benefits. Issue ID-ed in #2493801-109: Use AdvAgg to help speed up d.o according to Google PageSpeed Insights & webpagetest.org
Comment | File | Size | Author |
---|---|---|---|
#17 | advagg-2827137-17-inline-external.patch | 10.46 KB | mikeytown2 |
#14 | advagg-2827137-14-caching-n-cleanup.patch | 15.08 KB | mikeytown2 |
#12 | advagg-2827137-12-ui.patch | 17.66 KB | mikeytown2 |
#10 | advagg-2827137-10-ui.patch | 5.52 KB | mikeytown2 |
#8 | advagg-2827137-8-inline-import-font.patch | 14.71 KB | mikeytown2 |
Comments
Comment #2
mikeytown2 CreditAttribution: mikeytown2 commentedThinking about this and this should be a sub module. This should use the `cache_advagg_info table`, hash the url and prefix it with something like `advagg:file:css-import-url:`. Use a db table in order to query info on cron to update the remote data. Updates should respect the Cache-Control headers; also allowing for a global min to be enforced.
Comment #3
mikeytown2 CreditAttribution: mikeytown2 commentedThis is needed
https://css-tricks.com/snippets/css/using-font-face/
http://webmasters.stackexchange.com/questions/26992/if-i-have-only-woff-...
Comment #4
mikeytown2 CreditAttribution: mikeytown2 commentedUser Agents
eot: Mozilla/5.0 (Windows; U; MSIE 7.0; Windows NT 6.0; en-US)
svg: Mozilla/5.0 (iPad; U; CPU OS 3_2_2 like Mac OS X; nl-nl) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B500 Safari/531.21.10
ttf: Drupal (+http://drupal.org/)
woff: Mozilla/5.0 (Windows; U; MSIE 9.0; Windows NT 9.0; en-US)
woff2: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.1
Comment #5
mikeytown2 CreditAttribution: mikeytown2 commentedcache control headers
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control#...
http://stackoverflow.com/questions/40663174/parse-the-cache-control-head...
Comment #6
mikeytown2 CreditAttribution: mikeytown2 commentedHow mod_pagespeed does it
https://github.com/pagespeed/mod_pagespeed/blob/d76bc188e663e4b065be7cc0...
Comment #7
mikeytown2 CreditAttribution: mikeytown2 commentedStarting point... not working but groundwork has be set.
Comment #8
mikeytown2 CreditAttribution: mikeytown2 commentedTechnically working; still needs a lot of work but good enough to commit for now.
Comment #10
mikeytown2 CreditAttribution: mikeytown2 commentedHave the UI almost done; still need to tie it in so it actually does something
Comment #12
mikeytown2 CreditAttribution: mikeytown2 commentedThis has been committed. Need to do http caching, 304 handling and some cleanup most likely.
Comment #14
mikeytown2 CreditAttribution: mikeytown2 commentedComment #15
mikeytown2 CreditAttribution: mikeytown2 commentedGoing to mark this as fixed.
Comment #17
mikeytown2 CreditAttribution: mikeytown2 commentedAlso need to do the same for external css files.
Comment #19
mikeytown2 CreditAttribution: mikeytown2 commentedNeeded to add in dns and preconnect info for the newly inlined code.