title: Can I prevent a .js file from loading on certain site pages to stop browser errors?
body: <p>I am getting a heavy load of errors because a Jquery .js file I have embedded in the Joomla index.php page.  These errors are just browser errors but if I do any scrolling they just pile up.  </p>
  
  <p>The specific error says this:</p>
  
  <pre><code>Uncaught TypeError: Cannot read property 'top' of null js-snippets.min.js:11
  (anonymous function) js-snippets.min.js:11
  f.event.dispatch js-snippets.min.js:4
  h.handle.i js-snippets.min.js:4 
  </code></pre>
  
  <p>The page it is supposed to work on is fine and does not see this error.</p>
  
  <p>I guess I could put the .js file reference in each html page that I need it for but I hate doing that.  Isn't it better for the file to be in one single place?  </p>
  
  <p>In any event if I could prevent the .js file from loading on page(s) it would be ideal.  </p>
  
  <p>Here is a <a href="http://curtisj.trafficflo.net/index.php/residents" rel="nofollow">link to the site in questions.</a>  </p>