Title: Prefetch Page
Last modified: August 19, 2016

---

# Prefetch Page

 *  [cableghost](https://wordpress.org/support/users/cableghost/)
 * (@cableghost)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/prefetch-page/)
 * Is it possible to prefetch another page on a site when the home page is visited?
   If so, how?
 * -Scott

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/prefetch-page/#post-1383675)
 * Is that prefetch in terms of a perfomance thing–if so maybe a cache type plugin
   might help.
 * And then do what with the page?
 * You can use get_pages or query_posts to get a specific page. You can wrap the
   code in the is_home() [Conditional Tag](http://codex.wordpress.org/Conditional_Tags).
 * But here’s an example to get a page…
 *     ```
       <?php
       $args=array(
         'p' => 42,
         'post_type' => 'page',
         'post_status' => 'publish',
         'posts_per_page' => 1,
         'caller_get_posts'=> 1
       );
       $my_query = null;
       $my_query = new WP_Query($args);
       //$my_query will hold that page
       wp_reset_query();  // Restore global post data stomped by the_post().
       ?>
       ```
   
 *  [a_johnson](https://wordpress.org/support/users/a_johnson/)
 * (@a_johnson)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/prefetch-page/#post-1383678)
 * If you just want to pre fetch images, create a class called prefetch, put display
   none important in it then use a href tags in your template footer file.
 *  Thread Starter [cableghost](https://wordpress.org/support/users/cableghost/)
 * (@cableghost)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/prefetch-page/#post-1383762)
 * @a_johnson- it’s more than images, though thank you for the reply. I will probably
   could use though in other situations.
 * @MichaelH- this would be for an exit pop-up and want to have it display quickly.
   I’ll give it a try…thanks!
 * -Scott

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Prefetch Page’ is closed to new replies.

## Tags

 * [prefetch](https://wordpress.org/support/topic-tag/prefetch/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [cableghost](https://wordpress.org/support/users/cableghost/)
 * Last activity: [16 years, 3 months ago](https://wordpress.org/support/topic/prefetch-page/#post-1383762)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
