Fill in the blank.Many browsers support native image lazy-loading using the_________ attribute.
Choose an answer
Tap an option to check your answer.
Correct answer: loading.
Why this is the answer
The correct answer is loading.The loading attribute is used to enable native lazy-loading for images in HTML documents,allowing browsers to defer the loading of off screen images until they are needed.By adding the loading="lazy" attribute to an<img>tag,developers can instruct the browser to delay the loading of images that are not immediately visible within the view port,there by improving page loading performance and reducing bandwidth consumption.This attribute is particularly useful for webpages with a large number of images or long-scrolling content,as it helps prioritize the loading of visible content while deferring the loading of non-visible images until the user scrolls closer to them.Additionally,nativelazy-loading provided by the attribute is supported by most modern browsers,making it a convenient and widely-compatible solution for optimizing loading image loading in web applications.Overall,the loading attribute enhances the user experience by speeding up page load times and conserving network resources,making it a valuable tool for web developers striving to create fast and efficient websites.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed