lokesh / lightbox2

THE original Lightbox script (v2).
http://lokeshdhakar.com/projects/lightbox2/
MIT License
6.22k stars 1.77k forks source link

future posibillity to add script in head #480

Closed frankroch closed 8 years ago

frankroch commented 9 years ago

really love your script, but i don't understand why its not possible to add it to the head section of the page. i use so many plugins and i never had to put it before the closing body tag. really threw me off, would recommend adding that possibility.

lokesh commented 8 years ago

@frankroch You can load the script in the head section and then call lightbox.init() manually after the images are added to the DOM.

This isn't clear at the moment. I'll look to adding some documentation. Thanks for the note!