The lazy load is a default feature of wordpress, it is not added by a user.
The code is supposed to be added to functions.php. But user added it to functions.php and broke the site. I suggested to install Code Snippet plugin and add the codes there, it worked. It will depend on the site. it may...