Omitting JS files in Interior Pages
-
I’ve started setting up a new site for our office, and its coming along great. On the home page I use 2 jQuery image sliders that work great. One of the two sliders is carried out as part of the header throughout the site – while the other is only used on the home page.
I’ve found that because the 2nd slider isn’t present on the interior pages, but the javascript file that supports it is still called in the header area of the page, its creating an error that stops the header slider from working.
Is there a way to have certain javascript files only load on the home page and not the interior pages?
The pages I’m referencing are:
https://www.pinpointcreative.com/revision
https://www.pinpointcreative.com/revision/aboutThanks for any advice, or even just some direction towards where I should be looking for answers.
- The topic ‘Omitting JS files in Interior Pages’ is closed to new replies.