Petra
AI assistant for GrootMade
Hi! I'm Petra 👋 Ask me to help you find the perfect WP plugin, theme, or template kit.
forked from Lazy Loader™
IdleShift is not affiliated with Lazy Loader. The name and any related trademarks are used solely for nominative descriptive purposes.
This plugin combines two techniques to improve website performance by managing how images are delivered. It is for site administrators who want to reduce page load times and data usage for their visitors without manual image optimization.
srcset and sizes attributes. This ensures visitors download an image size that matches their screen, preventing the download of unnecessarily large files.lazysizes script to delay the loading of images until they are about to enter the viewport. Images outside the initial view are not loaded immediately, saving bandwidth and speeding up the initial page render.img tags. It changes srcset and sizes to data-* attributes, adds a lazyload class, and removes the src attribute to enable the lazy loading behavior.wp_get_attachment_image_attributes and post_thumbnail_html.noscript elements as a fallback for each modified image. This ensures images remain visible even if a visitor's browser has JavaScript disabled.