What is the best way to load a js and css file on certain pages (not on every single page like happens when using the .info file)?
2 Answers
Drupal provides two functions: drupal_add_css() and drupal_add_js().
You can use these at any point in your code to add a CSS or JS file to the page load.