How to code website images for fast loading and mobile respo...
How to code website images for fast loading and mobile responsiveness By David 13 December 2019 (Edited )
Share this article:Tweet
PICTURE element and SRCSET attribute of HTML 5 make this easy
Responsive images for responsive pages
Making web pages to be fully responsive so that they load quickly and maintain correct layout on screens of all sizes has always been a challenge.
And with Google's "mobile first" policy, it's more important than ever for pages to be optimized for mobile devices without compromising performance on desktops.
The PICTURE element and SRCSET attribute in HTML - new in HTML 5 - make this easy.
And if you'll be viewing the demonstration in a recent version of Chrome, don't overlook the instructions for tricking it into giving you a smartphone-narrow browser window.
Comments on How to code website images for fast loading and mobile responsiveness