inject-prefetch
v0.1.2
Published
Dynamically inject prefetch tags into the header
Downloads
2
Maintainers
Readme
inject-prefetch
Dynamically inject prefetch tags into the page header.
If the tag for the resource already exists, this will not create a duplicate tag.
Useage
var prefetch = require('inject-prefetch');
prefetch('http://....');
or
var assetsToPrefetch = [url1, url2, url3, url4];
prefetch(assetsToPrefetch);