a3rev / a3-lazy-load

Speed up your site and enhance frontend user's visual experience in PC's, Tablets and mobile with a3 Lazy Load.
GNU General Public License v3.0
18 stars 11 forks source link

Still using jQuery? #47

Open alvarotrigo opened 1 year ago

alvarotrigo commented 1 year ago

I installed the plugin and it was all working fine but then I looked at the code and...

I saw jQuery being loaded?

I took a look at my time on the computer and I realized I was not dreaming! It is indeed 2023, and there are still components using jQuery loading a huge library for something that can be done without it.

If the only reason to keep jQuery is to maintain old web browsers, that's ok, but it'd be nice to at least have an option to use the vanilla JS version of it, or to just use jQuery as a fallback.

Something as light as this would be nice: https://github.com/verlok/vanilla-lazyload