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

deanflory created an issue. See original summary.

deanflory’s picture

Issue summary: View changes
deanflory’s picture

Issue summary: View changes
catch’s picture

Version: 9.x-dev » 8.2.x-dev

Could be done in a minor release.

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.0-beta1 was released on August 3, 2016, which means new developments and disruptive changes should now be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Wim Leers’s picture

Title: Cache Hints for Server-side Image and CSS/JS Code Reduction pre-download » Client Hints for Server-side Image and CSS/JS Code Reduction pre-download
Status: Active » Closed (works as designed)

It'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.

Wim Leers’s picture

Component: request processing system » other

Also, this doesn't really belong in the request processing system component.