Fire event when all files are completely prepared
See original GitHub issueWill be very useful event, when all added files are completely prepared. I think, for now, this event can be fired, when preview for files will be generated. Also, be very useful to provide method for add/get multiple files at once, like addFiles()
/getFiles
Issue Analytics
- State:
- Created 6 years ago
- Comments:5
Top Results From Across the Web
Javascript event to fire after all script files have been loaded
This I found works form me: var everythingLoaded = setInterval(function() { if (/loaded|complete/.test(document.
Read more >How to fire an event on file select using jQuery - GeeksforGeeks
The JQuery change() method is used to fire an event when file is selected. Using change() method: It is used to change the...
Read more >Window: load event - Web APIs - MDN Web Docs - Mozilla
The load event is fired when the whole page has loaded, including all dependent resources such as stylesheets, scripts, iframes, and images.
Read more >.ready() | jQuery API Documentation
When this event fires it indicates that all assets on the page have loaded, including images. This event can be watched in jQuery...
Read more >HTML onload Event Attribute - W3Schools
The onload attribute fires when an object has been loaded. ... a web page has completely loaded all content (including images, script files,...
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 Free
Top 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
How do you mean, like if you add 10 files, when all of them are actually in state, after all the checks and hooks?
After #461 is merged, preview generation will be in a separate plugin, so not sure about this.
Internally this method would be doing
files.forEach(file => addFile)
anyway, so trying to think if its worth adding a shorthand method for this. How would you use it? As forgetFiles
, you can just douppy.getState().files
, would that work?Events for preview generation are being added in #970, closing this.