From 41e9f3ea68dd7d31ca3631d1b3513e23e6a9fd18 Mon Sep 17 00:00:00 2001 From: Joe Fletcher Date: Fri, 5 Dec 2014 14:28:39 -0800 Subject: [PATCH] update comments now that jQuery & Modernizr load in the footer --- lib/assets.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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');