question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add method to abort loading

See original GitHub issue

It 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:closed
  • Created 10 years ago
  • Reactions:2
  • Comments:14 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
desandrocommented, Oct 9, 2013

Dang, that’s way sleeker.

So, if anyone else would like an abort() method, please +1

1reaction
OZZlEcommented, Nov 5, 2018

If 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…

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found