preload-it icon indicating copy to clipboard operation
preload-it copied to clipboard

Add note for Content-Length header in the documentation

Open xavierfoucrier opened this issue 6 years ago • 0 comments

When dealing with videos, the preloader need to get the size of the video from the server through the Content-Length header, otherwise the onprogress event will not be fired properly due to this instruction:

https://github.com/andreupifarre/preload-it/blob/608d7c6c6706f933925a824ef2859b414c63dfbf/src/preloadOne.js#L6

This is important and should be specified in the documentation.

xavierfoucrier avatar Jan 13 '19 15:01 xavierfoucrier