• AMX

    (@lightscapes)


    I have been looking for a lightbox plugin not relying on jQuery (for performance reasons). This one looked promising. According to the PhotoSwipe website, it doesn’t have any dependencies.

    But when I dequeue jQuery, the plugin stops working, the lightbox won’t initialize.
    Is it intended, or is it possible to make the plugin work without jQuery?

    Cheers,
    Tom

Viewing 1 replies (of 1 total)
  • Plugin Author Arno Welzel

    (@awelzel)

    Yes, it is intended to use jQuery, otherwise it would not have been queued. The reason is not Photoswipe itself but the frontend script to integrate it. This script uses jQuery and doing things without it would mean to rewrite the whole script.

    If you want to contribute a version of the frontend script which does not need jQuery, I’m happy to get pull requests for this. The source can be found at Github: https://github.com/arnowelzel/lightbox-photoswipe/blob/master/js/frontend.js

Viewing 1 replies (of 1 total)
  • The topic ‘Is jQuery really necessary to use the plugin?’ is closed to new replies.