# WordPress极速“预加载”

Before visitors click on a link, they hover over that link. Between these two events, 200 ms to 300 ms usually pass by (test yourself here). InstantClick makes use of that time to preload the page, so that the page is already there when you click.

InstantClick uses pushState and Ajax (a combo known as pjax), replacing only the body and the title in the head.

http://instantclick.io/

<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/instantclick.min.js" data-no-instant></script>

#

WordPress极速“预加载”

2014-11-01