Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up

What does the loading="lazy" attribute on an img tag do?

  1. A Delays the image by a fixed time
  2. B Defers loading until the image is near the viewport
  3. C Reduces the image quality
  4. D Preloads the image immediately
Answer

Defers loading until the image is near the viewport

Lazy loading saves bandwidth for below-the-fold images. It should not be applied to the LCP image, as that delays the largest paint.

All Front end Development MCQs

Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up as