Skip to content

Commit 2cf8b50

Browse files
committed
Merge branch 'develop'
2 parents b574581 + e71bf16 commit 2cf8b50

File tree

3 files changed

+8
-16
lines changed

3 files changed

+8
-16
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,18 @@
22
All notable changes to this project will be documented in this file.
33
This project adheres to [Semantic Versioning](http://semver.org/).
44

5+
## [3.4.3] - 2017-03-27
6+
# Removes
7+
- Removes jQuery enqueue from google CDN from issue #100. Thanks for the heads up @jeremyescott
8+
59
## [3.4.2] - 2017-03-21
610
# Removes
711
- Removes opinionated structures from template files.
812
- Removes WP tweaks that were causing deprecation issues.
913

1014
# Adds
1115
- Adds sugar mixins for rems and aspect ratio
12-
- Adds Yelp CSS for social menu
16+
- Adds Yelp CSS for social menu
1317

1418

1519
## [3.4.1] - 2016-12-19

inc/enqueues.php

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,13 @@
11
<?php // CSS & JavaScript Enqueues
22

3-
/**
4-
* Load jQuery
5-
*/
6-
7-
if ( !is_admin() ) {
8-
add_action('wp_enqueue_scripts',function() {
9-
wp_deregister_script('jquery');
10-
wp_register_script('jquery', ('https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js'), false);
11-
wp_enqueue_script('jquery');
12-
});
13-
}
14-
153
/**
164
* Defer jQuery Parsing using the HTML5 defer property
175
*/
186

197
if (!(is_admin() )) {
208
function defer_parsing_of_js ( $url ) {
219
if ( FALSE === strpos( $url, '.js' ) ) return $url;
22-
if ( strpos( $url, 'jquery.min.js' ) ) return $url;
10+
if ( strpos( $url, 'jquery.js' ) ) return $url;
2311
// return "$url' defer ";
2412
return "$url' defer onload='";
2513
}
@@ -34,6 +22,6 @@ function prelude_theme_scripts() {
3422
wp_enqueue_style('prelude-css', get_template_directory_uri() . '/assets/css/theme.min.css', array(), THEME_VERSION );
3523

3624
// JS
37-
wp_enqueue_script('prelude-js', get_template_directory_uri() . '/assets/js/theme.min.js', array(), THEME_VERSION, true );
25+
wp_enqueue_script('prelude-js', get_template_directory_uri() . '/assets/js/theme.min.js', array('jquery'), THEME_VERSION, true );
3826
}
3927
add_action( 'wp_enqueue_scripts', 'prelude_theme_scripts' );

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "prelude-wp",
3-
"version": "3.4.2",
3+
"version": "3.4.3",
44
"description": "Prelude is a Wordpress starter theme that helps you craft custom themes. It uses Gulp to compile and minify scss/css, concatenate and minify JS, compress images, and more.",
55
"main": "index.php",
66
"scripts": {

0 commit comments

Comments
 (0)