Skip to content

Instantly share code, notes, and snippets.

@anthonyringoet
Created December 5, 2011 09:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anthonyringoet/1433078 to your computer and use it in GitHub Desktop.
Save anthonyringoet/1433078 to your computer and use it in GitHub Desktop.
add modernizr in template.php and avoid it gets preprocessed
<?php
function hook_preprocess_html(&$vars) {
// add modernizr and avoid that it gets preprocessed
$options = array('preprocess' => FALSE,
'weight' => -25.000,
'group' => -100);
drupal_add_js('/sites/all/libraries/modernizr/modernizr.min.js', $options);
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment