• I use this lightbox often because it does not contain jQuery which makes my frontend significantly “lighter”. Some other more popular plugins contain jQuery (e.g. simple lightbox).

    I also use Photoswipe in some of my other non-WordPress projects, so I am accustomed to it and I find it a very good lightbox solution.

    • This topic was modified 4 years, 2 months ago by Lovro Hrust.
    • This topic was modified 2 years, 9 months ago by Lovro Hrust. Reason: update of opinion
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Arno Welzel

    (@awelzel)

    Thanks for the nice review!

    Just a comment about the size of the frontend script: the frontend script doesn’t use jQuery (as PhotoSwipe also doesn’t need jQuery), it handles all the custom options from the backend and dynamic changes in the document after loading using a MutationObserver. It also tries to be compatible with as many browsers as possible. Other scripts are smaller as rely on jQuery and don’t have to implement this on their own. But then you would need to load jQuery as well and not only the frontend script – and this would be much more.

    For comparison:

    PhotoSwipe itself has about 80 KB minified, the frontend script of my plugin has about 10 KB – which is not that big. The frontend is just about 12% of the whole JavaScript content.

    • This reply was modified 4 years, 2 months ago by Arno Welzel.
    Thread Starter Lovro Hrust

    (@lovor)

    Thanks for answering review!
    I understand the reasoning and I like it very much without jQuery, as I try to have my sites jQuery-less for faster loading!

    Plugin Author Arno Welzel

    (@awelzel)

    Just a note: the latest versions reduce the file sizes even more – now there is only one compressed JavaScript file and only one compressed CSS file needed and the script is loaded in the footer to improve response times even further.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Very helpful’ is closed to new replies.