-
Notifications
You must be signed in to change notification settings - Fork 226
Open
Description
When the page has no images, the plugin wait for the maxTime to complete, instead of just completing right away.
Example:
http://jsbin.com/dureti/edit?html,output - Contains 1 image, loads pretty fast.
http://jsbin.com/henaba/edit?html,output - Has no images, takes really long time to complete.
What if we add a check after getImageSrcs function on
queryloader2/src/ImagePreloader/index.js
Line 29 in 183e0c0
| this.sources = this.getImageSrcs(element); |
if (this.sources.length === 0) {
this.done === true;
this.updateProgress();
}Metadata
Metadata
Assignees
Labels
No labels