Merge pull request #1225 from merchantguru/jquery-in-footer-comment

Update comments now that jQuery & Modernizr load in the footer
This commit is contained in:
Ben Word
2014-12-05 17:48:46 -06:00

View File

@@ -36,9 +36,10 @@ function roots_assets() {
wp_enqueue_style('roots_css', roots_asset_path('styles/main.css'), false, null);
/**
* jQuery is loaded using the same method from HTML5 Boilerplate:
* Grab Google CDN's latest jQuery with a protocol relative URL; fallback to local if offline
* It's kept in the header instead of footer to avoid conflicts with plugins.
* jQuery & Modernizr load in the footer per HTML5 Boilerplate's recommendation: http://goo.gl/nMGR7P
* If a plugin enqueues jQuery-dependent scripts in the head, jQuery will load in the head to meet the plugin's dependencies
* To explicitly load jQuery in the head, change the last wp_enqueue_script parameter to false
*/
if (!is_admin() && current_theme_supports('jquery-cdn')) {
wp_deregister_script('jquery');