Skip to content

Latest commit

 

History

History
43 lines (30 loc) · 927 Bytes

README.md

File metadata and controls

43 lines (30 loc) · 927 Bytes

Prefetcher.js v1.0.0 bitHound Score

JS Lib to prefetch files for next page, you just need to pass an array to Prefecher obj. Vanilla JS

Minimal use:

var prefetcher = new PREFETCHER([srcs]);
prefetcher.loadPrefetch();

Callbacks:

Called on download start

PREFETCHER.prototype.loadBegin = function(){};

Called on every item completition with success

PREFETCHER.prototype.loadItemComplete = function(status){};

Called on every item completition with error

PREFETCHER.prototype.loadItemError = function(status){};

Called after download completed

PREFETCHER.prototype.loadComplete = function(){};

Methods:

Begin donwload

	PREFETCHER.prototype.loadPrefetch()