Speed Booster Pack - Version 3.3

Version Description

  • Fix Lazy Load CSS problem.
Download this release

Release Info

Developer ShortPixel
Plugin Icon 128x128 Speed Booster Pack
Version 3.3
Comparing to
See all releases

Code changes from version 3.2 to 3.3

css/sbp-fade-in.css DELETED
@@ -1 +0,0 @@
1
- img.crazy_lazy {opacity:0}
 
css/style.dev.css CHANGED
@@ -134,6 +134,11 @@ p.description-link {
134
  color: #464646;
135
  line-height: 1.6;
136
  }
 
 
 
 
 
137
 
138
  .wrap .sb-pack .debug-info {
139
  margin-top: 19px;
134
  color: #464646;
135
  line-height: 1.6;
136
  }
137
+ .wrap .sb-pack p.sp-link {
138
+ text-align: center;
139
+ font-size: 1.2em;
140
+ margin-bottom: 20px;
141
+ }
142
 
143
  .wrap .sb-pack .debug-info {
144
  margin-top: 19px;
inc/template/options.php CHANGED
@@ -290,15 +290,17 @@ var jpegCompression = '<?php echo $this->image_compression; ?>';
290
  <?php _e( 'Note that any changes you make will only affect new images uploaded to your site. A specialized plugin can optimize all your present images and will also optimize new ones as they are added. ', 'sb-pack' ); ?>
291
  </strong></p>
292
  <br>
293
- <p class="description"><strong>
294
- <?php _e( 'We recommend using ShortPixel Plugin to optimize your images.', 'sb-pack' ); ?>
 
 
295
  </strong></p>
296
- <a href="https://shortpixel.com/booster/af/KQD2XAB28044" target="_blank"><img src="<?php echo $this->plugin_url . "inc/images/sp.png"; ?>" class="sbp-sp"/></a>
297
  <p class="description">
298
  <?php _e( 'ShortPixel is an easy to use, comprehensive, stable and frequently updated image optimization plugin supported by the friendly team that created it. Using a powerful set of specially tuned algorithms, it squeezes the most of each image striking the best balance between image size and quality. Current images can be all optimized with a single click. Newly added images are automatically resized/rescaled and optimized on the fly, in the background.', 'sb-pack' ); ?>
299
  </p>
300
  <p class="description-link">
301
- <a href="https://shortpixel.com/booster/af/KQD2XAB28044" target="_blank">&gt;&gt; <?php _e( 'More info', 'sb-pack' ); ?></a>
302
  </p>
303
  </div>
304
 
290
  <?php _e( 'Note that any changes you make will only affect new images uploaded to your site. A specialized plugin can optimize all your present images and will also optimize new ones as they are added. ', 'sb-pack' ); ?>
291
  </strong></p>
292
  <br>
293
+ <p class="description sp-link"><strong>
294
+ <a href="https://shortpixel.com/booster/af/KQD2XAB28044?autoreferrer=1" target="_blank">
295
+ <?php _e( 'Test your website with ShortPixel for free to see how much you could gain by optimizing your images.', 'sb-pack' ); ?>
296
+ </a>
297
  </strong></p>
298
+ <a href="https://shortpixel.com/booster/af/KQD2XAB28044?autoreferrer=1" target="_blank"><img src="<?php echo $this->plugin_url . "inc/images/sp.png"; ?>" class="sbp-sp"/></a>
299
  <p class="description">
300
  <?php _e( 'ShortPixel is an easy to use, comprehensive, stable and frequently updated image optimization plugin supported by the friendly team that created it. Using a powerful set of specially tuned algorithms, it squeezes the most of each image striking the best balance between image size and quality. Current images can be all optimized with a single click. Newly added images are automatically resized/rescaled and optimized on the fly, in the background.', 'sb-pack' ); ?>
301
  </p>
302
  <p class="description-link">
303
+ <a href="https://shortpixel.com/booster/af/KQD2XAB28044?autoreferrer=1" target="_blank">&gt;&gt; <?php _e( 'More info', 'sb-pack' ); ?></a>
304
  </p>
305
  </div>
306
 
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: SpeedWorks
3
  Donate link:
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: 4.7.2
7
- Stable tag: 3.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -80,8 +80,11 @@ Future Development:
80
 
81
  == Changelog ==
82
 
 
 
 
83
  = 3.2 =
84
- * * Added Lazy Load feature to improve the web page loading times of your images.
85
 
86
  = 3.1 =
87
  * Following requests from users, added back the option of excluding javascript elements.
3
  Donate link:
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: 4.8
7
+ Stable tag: 3.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
80
 
81
  == Changelog ==
82
 
83
+ = 3.3 =
84
+ * Fix Lazy Load CSS problem.
85
+
86
  = 3.2 =
87
+ * Added Lazy Load feature to improve the web page loading times of your images.
88
 
89
  = 3.1 =
90
  * Following requests from users, added back the option of excluding javascript elements.
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: 3.2
7
  * Author: SpeedWorks
8
  * Author URI: http://tiguandesign.com/docs/speed-booster/
9
  * License: GPLv2
@@ -36,9 +36,9 @@ $sbp_options = get_option( 'sbp_settings' ); // retrieve the plugin settings fro
36
  Define some useful plugin constants
37
  -----------------------------------------------------------------------------------------------------------*/
38
 
39
- define( 'SPEED_BOOSTER_PACK_RELEASE_DATE', date_i18n( 'F j, Y', strtotime('2017-05-06')) ); // Defining plugin release date
40
  define( 'SPEED_BOOSTER_PACK_PATH', plugin_dir_path( __FILE__ ) ); // Defining plugin dir path
41
- define( 'SPEED_BOOSTER_PACK_VERSION', 'v3.2'); // Defining plugin version
42
  define( 'SPEED_BOOSTER_PACK_NAME', 'Speed Booster Pack Plugin'); // Defining plugin name
43
  define( 'SBP_FOOTER', 10 ); // Defining css position
44
  define( 'SBP_FOOTER_LAST', 99999 ); // Defining css last position
@@ -57,7 +57,7 @@ define( 'SBP_FOOTER_LAST', 99999 ); // Defining css last position
57
  -----------------------------------------------------------------------------------------------------------*/
58
 
59
  public function __construct() {
60
-
61
 
62
  // Enqueue admin scripts
63
  add_action( 'admin_enqueue_scripts', array( $this, 'sbp_admin_enqueue_scripts' ) );
@@ -80,9 +80,9 @@ define( 'SBP_FOOTER_LAST', 99999 ); // Defining css last position
80
  // Enqueue admin style
81
  add_action( 'admin_enqueue_scripts', array( $this, 'sbp_enqueue_styles' ) );
82
 
83
- // if ( isset( $sbp_options['lazy_load'] ) ) {
84
- add_action( 'wp_enqueue_scripts', array( $this, 'sbp_fade_in_style' ) );
85
- // }
86
 
87
  // Render debugging information
88
  add_action( 'wp_footer', array( $this, 'sbp_debugg' ), SBP_FOOTER_LAST );
@@ -118,7 +118,8 @@ define( 'SBP_FOOTER_LAST', 99999 ); // Defining css last position
118
  }
119
 
120
  function sbp_dismiss_notices() {
121
- update_option( 'sbp_news', true);
 
122
  }
123
 
124
  /*----------------------------------------------------------------------------------------------------------
@@ -183,7 +184,7 @@ define( 'SBP_FOOTER_LAST', 99999 ); // Defining css last position
183
  --------------------------------------------------------------------------------------------------------------------------------------------*/
184
 
185
  public function sbp_fade_in_style() {
186
- wp_enqueue_style( 'sbp-fade-in-effect', plugin_dir_url( __FILE__ ) . 'css/sbp-fade-in.css' );
187
  }
188
 
189
 
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: 3.3
7
  * Author: SpeedWorks
8
  * Author URI: http://tiguandesign.com/docs/speed-booster/
9
  * License: GPLv2
36
  Define some useful plugin constants
37
  -----------------------------------------------------------------------------------------------------------*/
38
 
39
+ define( 'SPEED_BOOSTER_PACK_RELEASE_DATE', date_i18n( 'F j, Y', strtotime('2017-06-17')) ); // Defining plugin release date
40
  define( 'SPEED_BOOSTER_PACK_PATH', plugin_dir_path( __FILE__ ) ); // Defining plugin dir path
41
+ define( 'SPEED_BOOSTER_PACK_VERSION', 'v3.3'); // Defining plugin version
42
  define( 'SPEED_BOOSTER_PACK_NAME', 'Speed Booster Pack Plugin'); // Defining plugin name
43
  define( 'SBP_FOOTER', 10 ); // Defining css position
44
  define( 'SBP_FOOTER_LAST', 99999 ); // Defining css last position
57
  -----------------------------------------------------------------------------------------------------------*/
58
 
59
  public function __construct() {
60
+ global $sbp_options;
61
 
62
  // Enqueue admin scripts
63
  add_action( 'admin_enqueue_scripts', array( $this, 'sbp_admin_enqueue_scripts' ) );
80
  // Enqueue admin style
81
  add_action( 'admin_enqueue_scripts', array( $this, 'sbp_enqueue_styles' ) );
82
 
83
+ if ( isset( $sbp_options['lazy_load'] ) ) {
84
+ add_action('wp_head', array( $this, 'sbp_fade_in_style' ), 100);
85
+ }
86
 
87
  // Render debugging information
88
  add_action( 'wp_footer', array( $this, 'sbp_debugg' ), SBP_FOOTER_LAST );
118
  }
119
 
120
  function sbp_dismiss_notices() {
121
+ update_option( 'sbp_news', true);
122
+ return json_encode(array("Status" => 0));
123
  }
124
 
125
  /*----------------------------------------------------------------------------------------------------------
184
  --------------------------------------------------------------------------------------------------------------------------------------------*/
185
 
186
  public function sbp_fade_in_style() {
187
+ echo "<style>img.crazy_lazy {opacity:0}</style>";
188
  }
189
 
190