Disable Drupal JS/CSS aggregation for just one file

When adding a javascript/css with drupal_add_js / drupal_add_css set the preprocess paramater to false as in the following example:

drupal_add_js(drupal_get_path('theme', 'your_theme') . '/path/to/javascript_file.js' , array('preprocess' => FALSE ))

Leave a Reply

Your email address will not be published. Required fields are marked *