Skip to content

Instantly share code, notes, and snippets.

@brittanydionigi
Created August 31, 2015 18:14
Show Gist options
  • Save brittanydionigi/5b74a7af42e849a5a476 to your computer and use it in GitHub Desktop.
Save brittanydionigi/5b74a7af42e849a5a476 to your computer and use it in GitHub Desktop.
offliner setup 2
var Offliner = importScripts('dist/offliner.min.js');
// import here the plug-ins for offliner
var offlinerInstance = new Offliner({
workerUrl: "/path/to/worker-file.js"
});
offlinerInstance.prefetch
.use(/* ... */) // you will find fetchers in the off.fetchers collection
.resources([/* ... */]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment