FP TrendingJul 30, 2020 11:04:30 IST
Google has improved the lazy-loading for images in Chrome. Aside from reducing the image quality threshold, Google has also managed to save data loss.
Native lazy-loading configuration for images is used by Google Chrome to load images only when a user has scrolled enough to reach them. Using the loading attribute, users of Chrome 76+ can defer off-screen images from getting loaded. And, this saves data.
Addy Osmani, Google Engineering Manager working on Chrome, explained the new settings in his blog. He wrote that the distance-from-viewpoint threshold for images will be brought down from 3,000 pixels to 1,250 pixels on fast connections and from 4,000 pixels to 2,500 pixels on slower ones.
Reducing the threshold will help developers achieve two things – the coding will give a similar experience to other lazy-loading libraries present and it will still guarantee that images have been loaded by the time a user has reached them.
Osmani wrote that the changes have been backported till Chrome 79, so the users of older versions can also access the feature.
A report by Android Police said that the iframe embeds used by YouTube videos or Spotify widgets will also be able to benefit from lazy loading. When these apps are not in use, data can be saved.
Find latest and upcoming tech gadgets online on Tech2 Gadgets. Get technology news, gadgets reviews & ratings. Popular gadgets including laptop, tablet and mobile specifications, features, prices, comparison.