instantclick2

1.1.0 • Public • Published

InstantClick

Modified version of InstantClick with latest bug fixes + tweaks. Changelog:

  • Preload caching, saves on unnecessary fetches by only loading pages once.
  • Fix history bug when clicking on the same link multiple times.

Install

npm install instantclick2

How to use

var InstantClick = require('instantclick2');

InstantClick.init({
    preloadingMode: 50, //Mouseover duration before preload is triggered
    preloadCacheTimeLimit: 30000 //How long to cache preloaded pages
});

All the informations you need to use InstantClick are on the link above. This ReadMe’s purpose is about how to use and contribute to a development version of InstantClick.

Tests

Tests (in the tests folder) are PHP-generated HTML pages with which to check how InstantClick behaves on different browsers. That’s what I use before releasing a new version to make sure there are no obvious regressions.

To access the suite of tests, run php -S 127.0.0.1:8000 from the project’s root directory (not from the tests folder) and head to http://127.0.0.1:8000/tests/.

Contributing

See the Contributing.md file.

Readme

Keywords

Package Sidebar

Install

npm i instantclick2

Weekly Downloads

1

Version

1.1.0

License

MIT

Last publish

Collaborators

  • robgraeber