Created
November 8, 2012 01:42
-
-
Save zslabs/4035953 to your computer and use it in GitHub Desktop.
Enqueue Modernizr before all other scripts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function basey_scripts_header() { | |
wp_enqueue_script('modernizr', get_template_directory_uri() . '/js/modernizr.foundation.js', '', null, false); | |
} | |
add_action('template_redirect','basey_scripts_header', 8); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment