I'm using Shopify and I have some mobile speed issues, on my home page all my images load at once, so I have been going by Patrick Sexton's tutorial on varvy.com article: Defer images without lazy load or jquery (https://varvy.com/pagespeed/defer-images.html) I'm stuck on where to put the actual HTML code and the javascript code. And do I have to put the code in once per image or does that code provided on the tutorial cover all images?
Can anyone help, please?
The code provided is at the bottom of Patrick's article. https://varvy.com/pagespeed/defer-images.html
Any help would be appreciated :)
I have yet to try to put any code anywhere because I don't want to break something.