Consider a WordPress site where images have the loading="lazy" attribute added automatically. What is the main effect on page loading?
Think about how lazy loading delays image loading until needed.
Lazy loading delays image loading until the user scrolls near them, which reduces the initial page load time and saves bandwidth.
WordPress automatically adds an attribute to images to enable lazy loading. Which attribute is it?
It is a standard HTML attribute recognized by modern browsers.
The loading="lazy" attribute tells the browser to delay loading the image until it is near the viewport.
Lazy loading works on <img> tags but not on background images set with CSS. Why?
Think about how lazy loading is implemented in browsers.
Lazy loading uses the loading attribute on <img> tags. CSS background images are not <img> elements, so they cannot use this attribute and thus do not lazy load automatically.
If you disable lazy loading for images in WordPress, what is the most likely effect on your page speed score?
Consider how loading all images at once affects load time.
Disabling lazy loading causes all images to load immediately, which increases the initial page load time and usually lowers the page speed score.
You want to disable lazy loading for one image in WordPress while keeping it enabled globally. Which function or filter helps you do this?
WordPress provides a filter to control lazy loading per image.
The wp_lazy_loading_enabled filter lets you disable lazy loading conditionally, for example by checking the image's ID and returning false to disable lazy loading for that image only.