# Load script on one page?

**URL:** https://discourse.roots.io/t/load-script-on-one-page/1612
**Category:** uncategorized
**Created:** 2014-05-03T18:57:05Z
**Posts:** 2

## Post 1 by @markhaller — 2014-05-03T18:57:05Z

Hi there

Is it possible to load a javascript file on only one page/slug?

I’ve tried to do this in scripts.php using is\_page and various other conditionals but failed so far and wondered if roots was masking the name or something?

I’ve already taken it out of the grunt uglify, so it’s not included in the minified JS.

Thanks in advance!

---

## Post 2 by @swalkinshaw — 2014-05-03T22:34:44Z

Check out this thread for this exact question: [Is there a trick to conditionally wp\_enqueue\_scripts?](http://discourse.roots.io/t/is-there-a-trick-to-conditionally-wp-enqueue-scripts/1504/5)
