Title: Enqueue scripts on certain pages only
Last modified: August 19, 2016

---

# Enqueue scripts on certain pages only

 *  [miocene22](https://wordpress.org/support/users/miocene22/)
 * (@miocene22)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/enqueue-scripts-on-certain-pages-only/)
 * I’m using the `wp_register_script()` and `wp_enqueue_script()` functions in my
   functions.php file to load some sliding image scripts.
 * To save on http requests etc I only want them loaded on the home page.
    I tried
   sticking an `if(is_home()){...}` there but it doesn’t work.

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

 *  Thread Starter [miocene22](https://wordpress.org/support/users/miocene22/)
 * (@miocene22)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/enqueue-scripts-on-certain-pages-only/#post-1811564)
 * anybody?
 *  [Andrea Barghigiani](https://wordpress.org/support/users/pr0v4/)
 * (@pr0v4)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/enqueue-scripts-on-certain-pages-only/#post-1811676)
 * Hi miocene22,
 * did you found a solution at your problem?
 * I am stuck with the same issue, if I find anything I’ll let you know!
 *  [DazVision](https://wordpress.org/support/users/dazvision/)
 * (@dazvision)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/enqueue-scripts-on-certain-pages-only/#post-1811732)
 * Just in case you were still searching, [it was answered here](http://wordpress.org/support/topic/how-to-load-specific-java-script-on-specific-page?replies=9).
   Just use conditional tags; so you were right to begin with 🙂

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

The topic ‘Enqueue scripts on certain pages only’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [DazVision](https://wordpress.org/support/users/dazvision/)
 * Last activity: [15 years, 2 months ago](https://wordpress.org/support/topic/enqueue-scripts-on-certain-pages-only/#post-1811732)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
