Add method to abort loading
See original GitHub issueIt would be nice to have a method to abort loading so a callback is never reached, something like:
var loading = new imagesLoaded( elem, callback );
loading.abort();
Issue Analytics
- State:
- Created 10 years ago
- Reactions:2
- Comments:14 (3 by maintainers)
Top Results From Across the Web
Javascript event on page load abortion - Stack Overflow
Occurs when the user aborts the loading of the document. If an onstop event occurs, the onload event is not fired on the...
Read more >HTMLMediaElement: abort event - Web APIs | MDN
The abort event is fired when the resource was not fully loaded, ... Use the event name in methods like addEventListener() , or...
Read more >Window stop() Method - W3Schools
The stop() method is the same as clicking stop in the browser. Note. The stop() method can be used to stop loading an...
Read more >Fetch: Abort - The Modern JavaScript Tutorial
The fetch method knows how to work with AbortController . It will listen to abort events on signal . Now, to abort, call...
Read more >Aborting a multipart upload - Amazon Simple Storage Service
After you initiate a multipart upload, you begin uploading parts. Amazon S3 stores these parts, but it creates the object from the parts...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Dang, that’s way sleeker.
So, if anyone else would like an
abort()
method, please +1If you want to use this lib in for example a SPA, if imagesLoaded hasn’t finished when going away from the page you were at, then it continuous of elements that might not even exists anymore, and it reeks havoc on performance ./ so I’d say it’s a pretty important feature…