Speed Booster Pack - Version 2.2

Version Description

  • Fixed option to disable all CSS Async features on mobile devices.
  • Fixed incompatibility with WPtouch plugin. Thanks to @DevilIce for the bug report.
  • Update function wp_is_mobile() on lazy load images to really disabled this feature on mobile devices.
Download this release

Release Info

Developer tiguan
Plugin Icon 128x128 Speed Booster Pack
Version 2.2
Comparing to
See all releases

Code changes from version 2.1 to 2.2

Files changed (4) hide show
  1. inc/core.php +5 -1
  2. inc/lazy-load.php +1 -1
  3. readme.txt +9 -4
  4. speed-booster-pack.php +2 -2
inc/core.php CHANGED
@@ -80,7 +80,11 @@ function sbp_init() {
80
 
81
  global $sbp_options;
82
 
83
- if ( isset( $sbp_options['sbp_css_async'] ) and !isset ( $sbp_options['sbp_is_mobile'] ) and !wp_is_mobile() ) {
 
 
 
 
84
  add_action( 'wp_print_styles', array( $this, 'sbp_print_styles' ), SBP_FOOTER );
85
  add_action( 'wp_footer', array( $this, 'sbp_print_delayed_styles' ), SBP_FOOTER+1 );
86
  }
80
 
81
  global $sbp_options;
82
 
83
+ if ( wp_is_mobile() and isset ( $sbp_options['sbp_is_mobile'] ) ) { // disable all CSS options on mobile devices
84
+ return;
85
+ }
86
+
87
+ if ( isset( $sbp_options['sbp_css_async'] ) ) {
88
  add_action( 'wp_print_styles', array( $this, 'sbp_print_styles' ), SBP_FOOTER );
89
  add_action( 'wp_footer', array( $this, 'sbp_print_delayed_styles' ), SBP_FOOTER+1 );
90
  }
inc/lazy-load.php CHANGED
@@ -22,7 +22,7 @@ class Speed_Booster_Pack_Lazy_Load {
22
 
23
  static function add_sbp_image_placeholders( $content ) {
24
  // Don't lazyload for feeds, previews, mobile
25
- if( is_feed() || is_preview() || ( function_exists( 'is_mobile' ) && is_mobile() ) )
26
  return $content;
27
 
28
  // Don't lazy-load if the content has already been run through previously
22
 
23
  static function add_sbp_image_placeholders( $content ) {
24
  // Don't lazyload for feeds, previews, mobile
25
+ if( is_feed() || is_preview() || ( function_exists( 'wp_is_mobile' ) && wp_is_mobile() ) )
26
  return $content;
27
 
28
  // Don't lazy-load if the content has already been run through previously
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
  Tags: speed, optimization, performance, scripts to the footer, google libraries, font awesome cdn, defer parsing of javascript, remove query strings, lazy load images, gtmetrix, google pageSpeed, yslow, eliminate external render-blocking javascript and css, compression, async, render-blocking css
5
  Requires at least: 3.6
6
  Tested up to: 3.9.1
7
- Stable tag: 2.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -59,14 +59,19 @@ When visitors lands on your site for the first time, you only have 3 seconds to
59
 
60
  == Changelog ==
61
 
 
 
 
 
 
62
  = 2.1 =
63
- Added an option to disable all CSS Async features on mobile devices, to avoid some appearance issues until finding a clean solution to fix it.
64
 
65
  = 2.0 =
66
- Modified: amended previous except for the admin toolbar css to enqueue its stylesheets only if admin bar is showing, to not break the render blocking plugin option.
67
 
68
  = 1.9 =
69
- * Fix: breaking the SEO by Yoast plugin interface (perhaps as well as to others too). Thanks [@JahLive](http://profiles.wordpress.org/jahlive) for the [bug report](http://wordpress.org/support/topic/yoast-wordpress-seo-broken-after-update).
70
  * Added an except for the admin toolbar css since the Load CSS asynchronously option removes its dashicons and stylesheets.
71
 
72
 
4
  Tags: speed, optimization, performance, scripts to the footer, google libraries, font awesome cdn, defer parsing of javascript, remove query strings, lazy load images, gtmetrix, google pageSpeed, yslow, eliminate external render-blocking javascript and css, compression, async, render-blocking css
5
  Requires at least: 3.6
6
  Tested up to: 3.9.1
7
+ Stable tag: 2.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
59
 
60
  == Changelog ==
61
 
62
+ = 2.2 =
63
+ * Fixed option to disable all CSS Async features on mobile devices.
64
+ * Fixed incompatibility with WPtouch plugin. Thanks to [@DevilIce](http://profiles.wordpress.org/devilice) for the [bug report](http://wordpress.org/support/topic/css-asynchronously-and-wptouch-issue).
65
+ * Update function wp_is_mobile() on lazy load images to really disabled this feature on mobile devices.
66
+
67
  = 2.1 =
68
+ *Added an option to disable all CSS Async features on mobile devices, to avoid some appearance issues until finding a clean solution to fix it.
69
 
70
  = 2.0 =
71
+ *Modified: amended previous except for the admin toolbar css to enqueue its stylesheets only if admin bar is showing, to not break the render blocking plugin option.
72
 
73
  = 1.9 =
74
+ * Fix: breaking the SEO by Yoast plugin interface (perhaps as well as to others too). Thanks to [@JahLive](http://profiles.wordpress.org/jahlive) for the [bug report](http://wordpress.org/support/topic/yoast-wordpress-seo-broken-after-update).
75
  * Added an except for the admin toolbar css since the Load CSS asynchronously option removes its dashicons and stylesheets.
76
 
77
 
speed-booster-pack.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Speed Booster Pack
4
  * Plugin URI: http://wordpress.org/plugins/speed-booster-pack/
5
  * Description: Speed Booster Pack allows you to improve your page loading speed and get a higher score on the major speed testing services such as <a href="http://gtmetrix.com/">GTmetrix</a>, <a href="http://developers.google.com/speed/pagespeed/insights/">Google PageSpeed</a> or other speed testing tools.
6
- * Version: 2.1
7
  * Author: Tiguan
8
  * Author URI: http://tiguandesign.com
9
  * License: GPLv2
@@ -38,7 +38,7 @@ $sbp_options = get_option( 'sbp_settings', 'checked' ); // retrieve the plugin s
38
 
39
  define( 'SPEED_BOOSTER_PACK_RELEASE_DATE', date_i18n( 'F j, Y', '1400569200' ) ); // Defining plugin release date
40
  define( 'SPEED_BOOSTER_PACK_PATH', plugin_dir_path( __FILE__ ) ); // Defining plugin dir path
41
- define( 'SPEED_BOOSTER_PACK_VERSION', 'v2.1'); // Defining plugin version
42
  define( 'SPEED_BOOSTER_PACK_NAME', 'Speed Booster Pack Plugin'); // Defining plugin name
43
  define( 'SBP_FOOTER', 9999999 ); // Defining css position
44
 
3
  * Plugin Name: Speed Booster Pack
4
  * Plugin URI: http://wordpress.org/plugins/speed-booster-pack/
5
  * Description: Speed Booster Pack allows you to improve your page loading speed and get a higher score on the major speed testing services such as <a href="http://gtmetrix.com/">GTmetrix</a>, <a href="http://developers.google.com/speed/pagespeed/insights/">Google PageSpeed</a> or other speed testing tools.
6
+ * Version: 2.2
7
  * Author: Tiguan
8
  * Author URI: http://tiguandesign.com
9
  * License: GPLv2
38
 
39
  define( 'SPEED_BOOSTER_PACK_RELEASE_DATE', date_i18n( 'F j, Y', '1400569200' ) ); // Defining plugin release date
40
  define( 'SPEED_BOOSTER_PACK_PATH', plugin_dir_path( __FILE__ ) ); // Defining plugin dir path
41
+ define( 'SPEED_BOOSTER_PACK_VERSION', 'v2.2'); // Defining plugin version
42
  define( 'SPEED_BOOSTER_PACK_NAME', 'Speed Booster Pack Plugin'); // Defining plugin name
43
  define( 'SBP_FOOTER', 9999999 ); // Defining css position
44