WordPress Developer Ukraine, Kyiv
Lazy Load Images and Iframes in WordPress with the Native Loading Attribute and IntersectionObserver

Lazy Load Images and Iframes in WordPress with the Native Loading Attrib ...

Lazy load images and iframes in WordPress with the native loading attribute Since WordPress 5.5, images printed through the_content(), the_post_thumbnail() and wp_get_attachment_image() get loading="lazy", and since 5.7 iframes too. The browser then downloads off-screen images only when the visitor scrolls near them, without any JavaScript, which saves a lot of traffic on image-heavy pages. All…
Details