A presentation at FullStack Fest in in Barcelona, Spain by Jeremy Wagner
Client hints are both server headers we can detect on the back end and objects we can reference in JavaScript (e.g., navigator.connection) that application developers can use to tailor application resource delivery to accommodate users’ devices and preferences for reduced data usage.
In this talk, we’ll cover the various client hints available. By the end, you’ll understand how to sniff for them on both the front and back end, and adjust your application on the fly to adapt to the user. You’ll also get some inspiration as we step through a few recipes involving these useful little hints. You won’t want to miss it!
The following resources were mentioned during the presentation or are useful additional information.
Learn how to scale an image using Cloudinary's "Automatic Width" and "Automatic DPR" transformations to implement automatic responsive images solution.
Chrome 67 changed desktop Client Hints for privacy concerns. Mobile users download 42% less bytes with w_auto and Client Hints. Feature Policy API coming.
he Save-Data client hint request header available in Chrome, Opera, and Yandex browsers enables developers to deliver fast and light applications to users who have opted-in to "data saving" mode in the browser.
When enabled, Chrome's Data Saver mode sends a Save-Data
request header you can use to help users conserve data. How you will help your users Save-Data
?
Image optimization is hard and automation is the key to success.
Here’s what was said about this presentation on social media.