Is there a script or stack that will automatically allow lazy loading of images on a web page without having to type in the name of each image? I have a web page with dozens of images and looking for a way of making this more efficient/automated.
I have seen this script:
Issue is you have to replace my-image.jpg with the name of the actual image. Looking to see if there’s an easy way to do this?
It’s always a good idea to give each image a unique name plus an alt tag. If not only for SEO reasons, it’s also easier to keep your resources organised.
I’m using Foundry and the Lazy Load stack from Elixir for large images.