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
(thinking…)
Password icon
Signed in as (Sign out)
You have left! (?) (thinking…)
Jimmy Merrild Krag shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

2 comments

Sign in
(thinking…)
Password icon
Signed in as (Sign out)
Submitting...
  • Jan Pobořil commented  ·   ·  Flag as inappropriate

    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