Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

  1. How to lazy load images?

  2. A.

     Remove the rel attribute

    B.

     Remove the src attribute

    C.

     Make rel = src

    D.

     Make src = rel

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    The way we would lazy load images would be to alter the HTML of the page to remove the contents of the src attribute of each image. We could just move the contents of the src attribute to an attribute in the image tag of our own design, maybe the rel attribute.


Be The First To Comment