I suggest you ...

Include DOM gallery builder in JS file

Please include the initPhotoSwipeFromDOM function shown in http://photoswipe.com/documentation/getting-started.html#dom-to-slide-objects in PhotoSwipe in a JS file. That would make it much easier to get started with a gallery.

3 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Jimmy Merrild Krag shared this idea  ·   ·  Admin →

    2 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...
      • Jan Pobořil commented  · 

        Why to do it? All competitors support loading from DOM, so developer does not need to touch JS.

        Also will be nice to have this loader configurable, so I can e.g. use own Xpath for loading anchors, thumbnail url and all other sizes.

      Feedback and Knowledge Base