Created
August 31, 2015 18:14
-
-
Save brittanydionigi/5b74a7af42e849a5a476 to your computer and use it in GitHub Desktop.
offliner setup 2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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