Lazy loading images
Posted: Sat Feb 08, 2025 10:26 am
The solution? The <image> tag ! Again, in the awesome CSS Tricks article , you can find out how to use this tag to support browsers that both support and don’t support WebP.
SVG
SVG is a scalable vector format (meaning the quality remains the same regardless of size), it’s also very performance-friendly, and you can animate it!
With the SVG format, you can expect significantly smaller file sizes for graphics, logos, and illustrations; you can read more about it here . Considering the design trend toward custom illustrations, SVG must become part of your web development toolkit.
Want to see the power of SVGs? Visit the Stripe site ; they use them everywhere.
Check some of your illustrations, logos, and diagrams. If they ecuador mobile database are not in SVG format, change them to reduce the page size.
This is probably a more obvious problem, and a lot of sites are doing it right now (Chrome will support this by default soon !).
Given the size of images, it makes sense to load them only when they are needed, such as when the image is displayed in the browser viewport.
Lazy loading does just that. On page load, only the images at the top of the page will load. Once the user scrolls and sees more images, they will load. Simple and effective! Read Google's guidelines and use a framework that leverages the Intersection Observer API .
It’s a more performance-friendly way of lazy loading and has the added benefit of being supported by the new updated version of Googlebot .
SVG
SVG is a scalable vector format (meaning the quality remains the same regardless of size), it’s also very performance-friendly, and you can animate it!
With the SVG format, you can expect significantly smaller file sizes for graphics, logos, and illustrations; you can read more about it here . Considering the design trend toward custom illustrations, SVG must become part of your web development toolkit.
Want to see the power of SVGs? Visit the Stripe site ; they use them everywhere.
Check some of your illustrations, logos, and diagrams. If they ecuador mobile database are not in SVG format, change them to reduce the page size.
This is probably a more obvious problem, and a lot of sites are doing it right now (Chrome will support this by default soon !).
Given the size of images, it makes sense to load them only when they are needed, such as when the image is displayed in the browser viewport.
Lazy loading does just that. On page load, only the images at the top of the page will load. Once the user scrolls and sees more images, they will load. Simple and effective! Read Google's guidelines and use a framework that leverages the Intersection Observer API .
It’s a more performance-friendly way of lazy loading and has the added benefit of being supported by the new updated version of Googlebot .