Vidyalelo
JavaScript · Q85

Invocation And Performance Navigation

Programming · JavaScript · question 85

Q85

How to lazy load images?

A.
Remove the rel attribute
B.
Remove the src attribute
Answer
C.
Make rel = src
D.
Make src = rel

Answer: Option B

Solution

Answer: Option B
Solution:
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.