开发者

jQuery Asynchronous Image Loader Woes

开发者 https://www.devze.com 2023-03-28 00:52 出处:网络
Using jQuery JAIL (jQuery Asynchronous Image Loader) in my s开发者_JS百科ite, I\'ve followed all the instructions correctly but for some reason, the images always load first before the plugin takes pl

Using jQuery JAIL (jQuery Asynchronous Image Loader) in my s开发者_JS百科ite, I've followed all the instructions correctly but for some reason, the images always load first before the plugin takes place... I have it set up so that the images should fadeIn after a 1000ms delay but the images load completely, quickly black out and then fade in. any ideas anyone? lazyload has apparently become obsolete so I need to make this work. Thanks


It sounds like you have used the URL for the image in the src attribute, you need to use a small place holder image for the src attribute and the data-href attribute for the real image URL.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号