This article mainly introduces the plug-in InstantClick that improves page loading speed. The editor thinks it is quite good, so I will share it with you now and give it as a reference. Let’s follow the editor and take a look.
Usually, in order to reduce the query time of DNS, we can use dns prefetch to parse the links in the page and improve the loading speed of the page. Similarly, we can load the page during the time between when the mouse slides over the link and when it is clicked. This gap usually lasts a few hundred milliseconds. Using InstantClick, we can make full use of these hundreds of milliseconds to allow the website to display a new page instantly, almost No delays.
Installation of InstantClick
Installing InstantClick is very simple. Just download InstantClick and put it in a certain directory, and then quote the code before
However, for example:
<script src="//img.ezloo.com/static/instantclick.min.js" data-no-instant></script> <script data-no-instant>InstantClick.init();</script>
InstantClick may cause a white screen. The official gave an example to resolve the conflict with Google Adsense. I found that Baidu Statistics can also cause a white screen. Adding data-no-instant to