Javascript To Reduce Click Delay On Your Web Page & App – instantclick.js

Category: Javascript , Recommended | June 12, 2018
Author: dieulot
Views Total: 2,147
Official Page: Go to website
Last Update: June 12, 2018
License: MIT

Preview:

Javascript To Reduce Click Delay On Your Web Page & App – instantclick.js

Description:

instantclick.js is a useful javascript library that preloads links you are likely to click on in order to reduce the response time of mouse hover and mouse down (touch events supported).

Basic Usage:

Include the instantclick.js javascript library in the document.

<script src="instantclick.min.js" data-no-instant></script>

Initialize it with a true argument.

InstantClick.init(true);

Make a link ‘instant’ using data-instant attribute.

<a href="demo.html" data-instant>Link</a>

You can also blacklist a link by using data-no-instant attribute.

<a href="demo.html" data-no-instant>Link</a>

Changelog:

06/12/2018

  • Fix delegated click event not being triggered on elements without a cursor pointer on Mobile Safari

You Might Be Interested In:


Leave a Reply