Checked the repo and could not find jQuery except in these two files
https://github.com/thriveweb/photoswipe-masonry-v2/blob/master/frontend/js/photoswipe-masonry.js
https://github.com/thriveweb/photoswipe-masonry-v2/blob/master/frontend/js/photoswipe-lazyload.js
Proposal, what would it cost to have your guys write that in vanilla JS?
Happy to pay for a vanilla JS version of this plugin. Photoswipe itself is vanilla JS, that being one of the reasons what makes it so fast.
Would get cracking at it myself however still learning. Seeing that the old version uses jQuery in \wp-content\plugins\photoswipe-masonry\photoswipe-masonry.js made me sad as this is a HUGE payload for the site. Generally I am trying to keep away from an plugins that use jQuery. Writing it all in vanilla JS could speed this thing up plenty fold.
Managed to get 100% on the GPSI (Google PageSpeed Insights) score though by inlining the jQuery load and moving registered and enqueued stylesheets and script to footer and partly loading them async. However all this can be avoided with some vanilla JS.
What do you think?
Also is the repo you linked under active development?
There are lots of issues/improvements happening, be sure I am watching this very closely. Thank you heaps for your effort. Let me know if I can be of any help, thank you. Perhaps you could get donations going to support your dev time? I am sure if a couple of people support your work hours this could be done in no time.
-
This reply was modified 6 years, 11 months ago by Happy Coder. Reason: added more text