InstantClick is a small JavaScript library that uses pushState and Ajax technology. This combination is called Pjax。 Before a visitor clicks a link, the mouse will hover over the link. There is usually an interval of 200ms~300ms between the two events. InstantClick Use this time interval to preload the page, so that when you click the page, the page has already been loaded locally, and of course the presentation will be fast, greatly accelerating the response speed of your website.
Example of use:
... <script src="instantclick.min.js" data-no-instant></script> <script data-no-instant>InstantClick.init();</ script> </body> </html>
Download address: http://instantclick.io/