Skip to content

Modified version of InstantClick with bug fixes + additional options

License

Notifications You must be signed in to change notification settings

effinggames/instantclick

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published