Closed samlising closed 11 months ago
When displaying SVG assets in lightgallery the load animation remains on the page even after the SVG is displayed.
let $gallery = document.getElementById('gallery'); lightGallery($gallery, { selector: '.item', });
<div id="gallery"> <a class="bg-white w-1/8"> <img class="item" src="item1.svg" alt="" width=300 data-src="item1.svg" > </a> <a class="bg-white w-1/8"> <img class="item" src="item2.svg" alt="" width=300 data-src="item2.svg" > </a> </div>
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Description
When displaying SVG assets in lightgallery the load animation remains on the page even after the SVG is displayed.
JS code that you use to initialize lightGallery.
Sample HTML markup
Environment
Additional context