diff --git a/lib/assets.php b/lib/assets.php index b0545c8..5817999 100644 --- a/lib/assets.php +++ b/lib/assets.php @@ -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');