whatwg / loader

Loader Standard
https://whatwg.github.io/loader/
Creative Commons Zero v1.0 Universal
609 stars 45 forks source link

Progress events #143

Closed jhnns closed 8 years ago

jhnns commented 8 years ago

Just wanted to know: Is there any intend to provide an API for some sort of progress event? Where the underlying implementation is able to inform the user about how many bytes have already been downloaded/still need to be downloaded.

Thanks in advance! 😀

jhnns commented 8 years ago

Original question: http://stackoverflow.com/questions/37787123/is-it-possible-to-let-webpacks-system-import-use-ajax-for-progress-events/37835802

caridy commented 8 years ago

No plans for such feature out-of-the-fox, but you can implement your own fetch hook to have more control over what you are fetching. Additionally, the metadata object will be exposed for each module status object (https://whatwg.github.io/loader/#module-status-internal-slots), which will give you some details if the fetching process is done by the default fetch hook, but that is not an event of any sort.

Altiano commented 7 years ago

Why shouldn't this not planned? This is actually a good feature, right?