[SOLVED] Lazyloading images with data-src and data-srcset

Hi, since you asked, I’m new to this and I’d love some more information about you implemented this! I gather this code goes into the twig file, does it also play nice with modular pages? Presumably the JavaScript code has to go somewhere too? Does it then load all images lazily, or do you have to specify in the markdown as well?
Thanks!