I just ready this article about Cache Hints that is currently available in Chrome and Opera. If adopted by other browsers this might be a great way to reduce overall download size based on device/browser. The browser would send the information to the site before the content is compiled and sent to the browser.
Here's the original article with plenty of details:
https://www.smashingmagazine.com/2016/01/leaner-responsive-images-client-hints
- This could help reduce image size while retaining quality.
- This could reduce CSS and JS code by only sending what is required for that device/breakpoint/viewport (some of that was over my head and I just skimmed most of it)
So, this is more than just a replacement for picture or responsive images as it could be used in all facets of the site to reduce code that is not used at that breakpoint.
Comments
Comment #2
deanflory CreditAttribution: deanflory as a volunteer commentedComment #3
deanflory CreditAttribution: deanflory as a volunteer commentedComment #4
catchCould be done in a minor release.
Comment #6
Wim LeersIt's not "Cache Hints", but "Client Hints".
Alas, only supports Chrome & Opera for now, which means this really belongs in contrib for now. Core doesn't add browser-specific features, definitely not big-impact ones like this.
Comment #7
Wim LeersAlso, this doesn't really belong in the
component.