dimsemenov / Magnific-Popup

Light and responsive lightbox script with focus on performance.
http://dimsemenov.com/plugins/magnific-popup/
MIT License
11.39k stars 3.48k forks source link

Allow the data-mfp-src attribute to reference a TEMPLATE tag #1028

Open alibosworth opened 7 years ago

alibosworth commented 7 years ago

If the source element is a template tag then it is a document fragment and must have its content pulled out into a new element.

The benefit of using a template tag in supported browsers is that the browser will not render it or fetch its images.