From 95cbd1713da68950a13f7be371cb1205903f3100 Mon Sep 17 00:00:00 2001 From: Ben Word Date: Sun, 18 Jan 2015 17:08:38 -0600 Subject: [PATCH] Use minified jQuery See https://github.com/roots/roots/commit/3a4ae77b1e1c10e7678ba4bc8889fc4099cbfe05#commitcomment-9235183 --- lib/assets.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/assets.php b/lib/assets.php index cc3690d..f3eed24 100644 --- a/lib/assets.php +++ b/lib/assets.php @@ -9,7 +9,7 @@ namespace Roots\Sage\Assets; * 1. /theme/dist/styles/main.css * * Enqueue scripts in the following order: - * 1. jquery-1.11.2.js via Google CDN + * 1. Latest jQuery via Google CDN (if enabled in config.php) * 2. /theme/dist/scripts/modernizr.js * 3. /theme/dist/scripts/app.js * @@ -47,7 +47,7 @@ function assets() { if (!is_admin() && current_theme_supports('jquery-cdn')) { wp_deregister_script('jquery'); - wp_register_script('jquery', '//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.js', [], null, true); + wp_register_script('jquery', '//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js', [], null, true); add_filter('script_loader_src', __NAMESPACE__ . '\\jquery_local_fallback', 10, 2); }