0.0.1 • Published 2 years ago

gamble v0.0.1

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

Installation

You can install gamble using npm, yarn or bower:

$ npm install gamble
$ yarn add gamble
$ bower install gamble

Usage

Note: the library is exports as UMD module.

const gamble = require('gamble');

// dns-prefetch
gamble({
    rel: 'dns-prefetch',
    href: 'https://domain.com'
});
// prefetch a script with CORS
gamble({
    rel: 'prefetch',
    href: 'https://domain.com/script.js',
    as: 'script',
    crossorigin: 'use-credentials'
});
// preload a HTML page
gamble({
    rel: 'preload',
    href: 'https://domain.com/index.html',
    as: 'html'
});
// prerender a page
gamble({
    rel: 'prerender',
    href: 'https://domain.com/index.html'
});
0.0.1

2 years ago

1.0.1

7 years ago

1.0.0

7 years ago