I am trying to optimize my site for speed as it’s quite heavy (photography portfolio). I keep getting 0% score on GTMetrix for serving scaled images. I’ve used smush pro to compress images and enabled the CDN hoping to resolve this.
After further investigation, I’ve found that Smush CDN generates srcset with different image sizes, but image tags in my gallery have width and height attributes set to the width and height of the original image, it picks the biggest size from the srcset.
https://monosnap.com/file/jcnxT1U5AZaAeU0nUpuixZcNeAxXPg
Unfortunately, I couldn’t get rid of the width and height attributes as they’re generated automatically. Is there any way to fix this?