inject-prefetch

0.1.2 • Public • Published

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

Package Sidebar

Install

npm i inject-prefetch

Weekly Downloads

0

Version

0.1.2

License

MIT

Unpacked Size

2.4 kB

Total Files

4

Last publish

Collaborators

  • cheapsteak