andreupifarre/preload-it

Cancel method and event

xavierfoucrier opened this issue · 2 comments

Allow the user to properly cancel the preload at any time by calling preload.cancel(), aborting the XMLHttpRequest. Add support for a cancel event too, like preload.canceled = () => { ... }.

This has been added already on 1.4.0, preload.cancel() method and preload.oncancel = items => {} event.

Thanks @andreupifarre!

that wasn't specified in the doc on january