desandro / imagesloaded

:camera: JavaScript is all like "You images done yet or what?"
https://imagesloaded.desandro.com
MIT License
8.88k stars 1.15k forks source link

Warning: noob incoming #309

Open flamuren opened 1 year ago

flamuren commented 1 year ago

Hi Desandro,

I am building my first website using wordpress and its been a long journey this year learning everything. I am now trying to optimize my website because it was ofc poorly built by me, since I started January as a total noob, and with so many plugins that I think people like you would shed a tear how bad it is. However perfmatters plugin let me delay some JS to keep it atleast decent. I am trying to understand it all and analyze using pagespeed insights to see what I can fix. In doing this your build is showing. I just wonder what/how its added to my website and if I should not be concerned? I am lazyloading with perfmatters so I dont really know what this does:

mydomain.com/wp-includes/js/imagesloaded.min.js?ver=4.1.4

Sorry to disturb you.

Best regards,

Flamur

ShaneMuir commented 1 year ago

Hi @flamuren,

Firstly I am not part of imagesloaded package at all but I happened to stumble across your post and knew the answer. I'm a WP developer.

The reason your site is including mydomain.com/wp-includes/js/imagesloaded.min.js?ver=4.1.4 will be because @desandro package is included within WordPress Core and will remain so for backward compatibility. My guess is you have a plugin or theme that is using imagesloaded hence it being requested by your network.

hope this helps.