SmartPhoto
SmartPhoto copied to clipboard
Prevent the large image preloading
First of all,this plugin is very awesome,thank you so mach. But there are some shortcoming. For example, the origin images in the <a href="./assets/large-rakuda.jpg"></a>
will be loaded at the same time.
So, how to prevent the origin image preloading?
Was looking for that too!
Hi @Tammeny @ishii-jun Unfortunately, There is no way to prevent the origin image preloading as of now. I'll add that feature later
Hi @Tammeny @ishii-jun I added the feature to prevent preloading by default thank you :)
Thank you for your work! I have a problem using your plugin with lazy loading of images, which initially refer to the preloader in the "src" attribute, and only after appearing in the visible area receive the real link from "data-src". Could you give any advise how to solve this problem? I'm not a profy in js))
Hi @Rad-Chertovsky I just added data-lazy attribute for img tags from v1.5.0 plz try ;)
Now it doesn't work at all(( Even in your examples folder works only vanilla.html
With old smartphoto.js it's all good except wrong prewiev images in smartphoto-nav bar
my pattern is like this:
<a class="js-smartphoto" href="../images/Big-photo1.jpg" data-caption="caption" data-id="some-photo" data-group="some-group"> <img class="lazy" src="../images/placeholder.jpg" data-src="../images/photo1.jpg" data-lazy="../images/photo1.jpg">
@Rad-Chertovsky Is this issue still occurring? if it was resolved, Can I close this issue?