I'm trying to implement a script for lazy loading images on my site and I'm not sure how to target specific image templates. I need to change the
src attribute to
data-src and add a class.
All images are currently using
image.html.twig. If I change that template it almost works but ends up changing some images it shouldn't.
What would be a good way to modify the attributes of these images based on their use within specific paragraphs across the site?