Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
January 18, 2016 11:54 am GMT

Leaner Responsive Images With Client Hints


Responsive images have been around long enough for most of us to have taken them for a spin, or at least to have learned from the experiences of those who have. Beyond doubt, the responsive images specification is a great win for the web. However, quite a few reports from the front lines suggest that responsive images can become pretty ugly.

The Client Hints flow: 1. Enable client hints. 2. Client hints are added. 3. Server selects or generates an image. 4. Server responds. 5. Image rendered.

The good news is that there is a fix! No, not throwing JavaScript at the challenge, but by asking the web server for a helping hand. Enter Client Hints, an initiative spearheaded by Google that is already available in browsers (Chrome and Opera) and that is super-simple to use. Lets see how Client Hints can reduce both image size and verbosity of the responsive images markup.

The post Leaner Responsive Images With Client Hints appeared first on Smashing Magazine.


Original Link: https://www.smashingmagazine.com/2016/01/leaner-responsive-images-client-hints/

Share this article:    Share on Facebook
View Full Article

Smashing Magazine

Smashing Magazine delivers useful and innovative information to Web designers and developers.

More About this Source Visit Smashing Magazine