[wp-hackers] JS file call
info at swordstudios.net
Fri Mar 18 20:42:36 UTC 2011
I have a form on a contact page that requires a js file. I don't want to
unnecessarily call this js file through out the site but rather only on this
page that needs it.
I don't want to call it in the page content it's self.
I figured I could do one of a couple things but I wanted to get some
feedback on what's best practice.
- Create a shortcode in the content to grab the js file
- put an if statement in the header with the page id
- create a custom value that would be set to true if we want it pulled
*Jesse Friedman* Founder / Lead Developer
*SWORD Studios* | 508.50.SWORD info at swordstudios.net
swordstudios.net @professor <http://twitter.com/professor>
More information about the wp-hackers