effinggames / instantclick

Modified version of InstantClick with bug fixes + additional options

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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/.

See the Contributing.md file.

About

Modified version of InstantClick with bug fixes + additional options

License:MIT License


Languages

Language:JavaScript 66.7%Language:PHP 16.3%Language:HTML 13.5%Language:Makefile 1.8%Language:CSS 1.8%