update comments now that jQuery & Modernizr load in the footer
This commit is contained in:
@@ -36,9 +36,10 @@ function roots_assets() {
|
|||||||
wp_enqueue_style('roots_css', roots_asset_path('styles/main.css'), false, null);
|
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
|
* 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')) {
|
if (!is_admin() && current_theme_supports('jquery-cdn')) {
|
||||||
wp_deregister_script('jquery');
|
wp_deregister_script('jquery');
|
||||||
|
|||||||
Reference in New Issue
Block a user