Using the following snippet will let you automatically prefetch next pages on your WordPress blog. All you have to do is to simply paste the snippet in your theme’s header.php file and you are done.
1 2 3 4 | <?php if (is_archive() && ($paged > 1) && ($paged < $wp_query->max_num_pages)) { ?> <link rel="prefetch" href="<?php echo get_next_posts_page_link(); ?>"> <link rel="prerender" href="<?php echo get_next_posts_page_link(); ?>"> <?php } ?> |
Snippet Source/Credit: Bernd