Posted - 07/16/2020 : 19:04:39
On the CSS-TRICKS website there is an extremely detailed article discussing the " srcset" attribute titled: A Guide to the Responsive Images Syntax in HTML >>This addresses my original question: What performance gain in pageload speed will be achieved if all this additional HTML code was actually implemented? And furthermore, actually how might the suggestion be implemented; how might all this more complex code be automated ? > CDN Content Delivery Networks already offer this: Watch video >>> There is a Lazy Loader for Images script on GitHub, but that appears to have numerous "Issues". (The WTF concern I mentioned above.) > There are other resources listed in the article. The Reader Comments at the bottom of the css-tricks article are also interesting, especially from the Author, Chris Coyier: quote: I try to make the point many times in the article that automation is vitally important here. I would never advocate that you author this by hand every time. Personally, I hardly ever do that. I’m always looking for ways to abstract and automate it.
Right-click any image in the the article and "Inspect" the source code to discover that the "srcset" attribute is used, apparently implemented using some WordPress plugin (?) I am not criticizing your suggestion John. It is interesting and has potential. But the "how" looks not so simple. Maybe an image CDN is the ultimate solution for those who want image size and format optimization? Gary
Edited by - ITZAP on 07/16/2020 19:37:03
|