Speed Booster Pack - Version 2.1

Version Description

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.

Download this release

Release Info

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

Code changes from version 2.0 to 2.1

Files changed (4) hide show
  1. inc/core.php +1 -1
  2. inc/template/options.php +6 -0
  3. readme.txt +21 -18
  4. speed-booster-pack.php +3 -2
inc/core.php CHANGED
@@ -80,7 +80,7 @@ function sbp_init() {
80
 
81
  global $sbp_options;
82
 
83
- if ( isset( $sbp_options['sbp_css_async'] ) ) {
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 ( 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
  }
inc/template/options.php CHANGED
@@ -194,6 +194,12 @@ var jpegCompression = '<?php echo $this->image_compression; ?>';
194
  <label for="sbp_settings[sbp_footer_css]"><?php _e( 'Insert all CSS styles inline to the footer', 'sb-pack' ); ?></label>
195
  </p>
196
 
 
 
 
 
 
 
197
  <p class ="description"><?php _e( '*Inserting all CSS styles inline to the footer will eliminate render-blocking CSS warning in Google Page Speed test. If there is something broken after activation, you need to disable this option. Please note that before enabling this sensitive option, it is strongly recommended that you also enable the "Move scripts to the footer" option.', 'sb-pack' ); ?>
198
  </p>
199
 
194
  <label for="sbp_settings[sbp_footer_css]"><?php _e( 'Insert all CSS styles inline to the footer', 'sb-pack' ); ?></label>
195
  </p>
196
 
197
+ <p>
198
+ <input id="sbp_settings[sbp_is_mobile]" name="sbp_settings[sbp_is_mobile]" type="checkbox" value="1" <?php checked( 1, isset( $sbp_options['sbp_is_mobile'] ) ); ?> />
199
+ <label for="sbp_settings[sbp_is_mobile]"><?php _e( 'Disable all above CSS options on mobile devices', 'sb-pack' ); ?></label>
200
+ </p>
201
+
202
+
203
  <p class ="description"><?php _e( '*Inserting all CSS styles inline to the footer will eliminate render-blocking CSS warning in Google Page Speed test. If there is something broken after activation, you need to disable this option. Please note that before enabling this sensitive option, it is strongly recommended that you also enable the "Move scripts to the footer" option.', 'sb-pack' ); ?>
204
  </p>
205
 
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.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -40,22 +40,6 @@ When visitors lands on your site for the first time, you only have 3 seconds to
40
  * **Displays the number of executed queries** in the plugin options page.
41
  * **Displays the Peak Memory Used** in the plugin options page.
42
 
43
- = Page Load Stats =
44
-
45
- Page Load Stats is a brief statistic displayed in the plugin options page. It displays your homepage loading speed (in seconds) and number of processed queries.
46
-
47
- **Page loading time** – the progress bar color will be:
48
-
49
- * *green* if the page load takes less than a second
50
- * *orange* when loading the page takes between 1 and 2 seconds
51
- * *red* if the page loading takes longer than 2 seconds
52
-
53
- **Number of executed queries** – the progress bar color will be:
54
-
55
- * *green* if there were less than 100 queries
56
- * *orange* if there were between 100 and 200 queries
57
- * *red* if the page required more than 200 queries
58
-
59
  = Other Notes =
60
 
61
  * For complete usage instructions visit [Plugin Documentation](http://tiguandesign.com/docs/speed-booster/)
@@ -71,10 +55,13 @@ Page Load Stats is a brief statistic displayed in the plugin options page. It di
71
  5. A new sub menu item `Speed Booster Pack` will appear in your main Settings menu.
72
 
73
  == Screenshots ==
74
- 1. Plugin options page, simple view (v1.8)
75
 
76
  == Changelog ==
77
 
 
 
 
78
  = 2.0 =
79
  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.
80
 
@@ -118,6 +105,22 @@ Modified: amended previous except for the admin toolbar css to enqueue its style
118
  = 1.0 =
119
  * Initial release
120
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
121
  == Credits ==
122
 
123
  * Thanks to [Jason Penney](http://jasonpenney.net/) for Google Libraries feature.
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
 
40
  * **Displays the number of executed queries** in the plugin options page.
41
  * **Displays the Peak Memory Used** in the plugin options page.
42
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
  = Other Notes =
44
 
45
  * For complete usage instructions visit [Plugin Documentation](http://tiguandesign.com/docs/speed-booster/)
55
  5. A new sub menu item `Speed Booster Pack` will appear in your main Settings menu.
56
 
57
  == Screenshots ==
58
+ 1. Plugin options page, simple view (v2.1)
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
 
105
  = 1.0 =
106
  * Initial release
107
 
108
+ == Page Load Stats ==
109
+
110
+ Page Load Stats is a brief statistic displayed in the plugin options page. It displays your homepage loading speed (in seconds) and number of processed queries.
111
+
112
+ **Page loading time** – the progress bar color will be:
113
+
114
+ * *green* if the page load takes less than a second
115
+ * *orange* when loading the page takes between 1 and 2 seconds
116
+ * *red* if the page loading takes longer than 2 seconds
117
+
118
+ **Number of executed queries** – the progress bar color will be:
119
+
120
+ * *green* if there were less than 100 queries
121
+ * *orange* if there were between 100 and 200 queries
122
+ * *red* if the page required more than 200 queries
123
+
124
  == Credits ==
125
 
126
  * Thanks to [Jason Penney](http://jasonpenney.net/) for Google Libraries feature.
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.0
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.0'); // 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
 
@@ -118,6 +118,7 @@ define( 'SBP_FOOTER', 9999999 ); // Defining css position
118
  update_option( 'sbp_css_async', 1 );
119
  update_option( 'sbp_css_minify', 1 );
120
  update_option( 'sbp_footer_css', 0 );
 
121
  }
122
 
123
  } // END public static function sb_activate
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
 
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
 
118
  update_option( 'sbp_css_async', 1 );
119
  update_option( 'sbp_css_minify', 1 );
120
  update_option( 'sbp_footer_css', 0 );
121
+ update_option( 'sbp_is_mobile', 0 );
122
  }
123
 
124
  } // END public static function sb_activate