Home

Awesome

netjet Travis-CI Status

netjet is a Node.js HTTP middleware to automatically insert Preload link headers in HTML responses. These Preload link headers allow for web browsers to initiate early resource fetching before being needed for execution.

Example usage

var express = require('express');
var netjet = require('netjet');
var root = '/path/to/static/folder';

express()
  .use(netjet())
  .use(express.static(root))
  .listen(1337);

Options

License

MIT License see LICENSE.md.