diff --git a/CHANGELOG.md b/CHANGELOG.md index c80b3109..363343cb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +### HEAD +* Switch from Google CDN to jQuery CDN ([#144](https://github.com/roots/soil/issues/144)) + ### 3.6.2: December 24th, 2015 * Add missing oEmbed cleanup ([#134](https://github.com/roots/soil/issues/134)) diff --git a/README.md b/README.md index 8e17cf7f..f62e3251 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ wp plugin activate soil * **Google Analytics** ([more info](https://github.com/roots/soil/wiki/Google-Analytics))
`add_theme_support('soil-google-analytics', 'UA-XXXXX-Y');` -* **Load jQuery from the Google CDN**
+* **Load jQuery from the jQuery CDN**
`add_theme_support('soil-jquery-cdn');` * **Move all JS to the footer**
diff --git a/modules/jquery-cdn.php b/modules/jquery-cdn.php index 4870b5cb..40102db7 100644 --- a/modules/jquery-cdn.php +++ b/modules/jquery-cdn.php @@ -3,7 +3,7 @@ namespace Roots\Soil\JqueryCDN; /** - * Load jQuery from Google's CDN with a local fallback + * Load jQuery from jQuery's CDN with a local fallback * * You can enable/disable this feature in functions.php (or lib/setup.php if you're using Sage): * add_theme_support('soil-jquery-cdn'); @@ -15,7 +15,7 @@ function register_jquery() { wp_register_script( 'jquery', - 'https://ajax.googleapis.com/ajax/libs/jquery/' . $jquery_version . '/jquery.min.js', + 'https://code.jquery.com/jquery-' . $jquery_version . '.min.js', [], null, true