Skip to content

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

Notifications You must be signed in to change notification settings

LuizPanariello/prefetcher

Repository files navigation

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()

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published