Version Description
- Fix compatibility with the CrazyLazy plugin.
Download this release
Release Info
Developer | ShortPixel |
Plugin | Speed Booster Pack |
Version | 3.5 |
Comparing to | |
See all releases |
Code changes from version 3.4 to 3.5
- inc/core.php +3 -2
- inc/template/options.php +7 -2
- readme.txt +4 -1
- speed-booster-pack.php +3 -3
inc/core.php
CHANGED
@@ -375,8 +375,9 @@ function sbp_use_google_libraries() {
|
|
375 |
|
376 |
function sbp_lazy_load_for_images() {
|
377 |
|
378 |
-
|
379 |
-
|
|
|
380 |
} // End function sbp_lazy_load_for_images()
|
381 |
|
382 |
|
375 |
|
376 |
function sbp_lazy_load_for_images() {
|
377 |
|
378 |
+
if ( !class_exists( 'CrazyLazy' ) ) {
|
379 |
+
require_once(SPEED_BOOSTER_PACK_PATH . 'inc/crazy-lazy.php');
|
380 |
+
}
|
381 |
} // End function sbp_lazy_load_for_images()
|
382 |
|
383 |
|
inc/template/options.php
CHANGED
@@ -51,8 +51,13 @@
|
|
51 |
</p>
|
52 |
|
53 |
<p>
|
54 |
-
|
55 |
-
<
|
|
|
|
|
|
|
|
|
|
|
56 |
</p>
|
57 |
|
58 |
|
51 |
</p>
|
52 |
|
53 |
<p>
|
54 |
+
<?php if ( is_plugin_active('crazy-lazy/crazy-lazy.php') ) { ?>
|
55 |
+
<input id="sbp_settings[lazy_load]" name="sbp_settings[lazy_load]" type="hidden" value="<?php echo(isset( $sbp_options['lazy_load'] )? '1' : '0' ); ?>" />
|
56 |
+
<label for="sbp_settings[lazy_load]"><?php _e( 'Lazy loading already handled by CrazyLazy plugin', 'sb-pack' ); ?></label>
|
57 |
+
<?php } else {?>
|
58 |
+
<input id="sbp_settings[lazy_load]" name="sbp_settings[lazy_load]" type="checkbox" value="1" <?php checked( 1, isset( $sbp_options['lazy_load'] ) ); ?> />
|
59 |
+
<label for="sbp_settings[lazy_load]"><?php _e( 'Lazy load images to improve speed', 'sb-pack' ); ?></label>
|
60 |
+
<?php } ?>
|
61 |
</p>
|
62 |
|
63 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ 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.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -77,6 +77,9 @@ Future Development:
|
|
77 |
|
78 |
== Changelog ==
|
79 |
|
|
|
|
|
|
|
80 |
= 3.4 =
|
81 |
* Added an option to increase your page load speed by minifying JavaScript and HTML. Removed option to remove RSD Link, since its impact on improving speed was insignificant.
|
82 |
|
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.5
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
77 |
|
78 |
== Changelog ==
|
79 |
|
80 |
+
= 3.5 =
|
81 |
+
* Fix compatibility with the CrazyLazy plugin.
|
82 |
+
|
83 |
= 3.4 =
|
84 |
* Added an option to increase your page load speed by minifying JavaScript and HTML. Removed option to remove RSD Link, since its impact on improving speed was insignificant.
|
85 |
|
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.
|
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-
|
40 |
define( 'SPEED_BOOSTER_PACK_PATH', plugin_dir_path( __FILE__ ) ); // Defining plugin dir path
|
41 |
-
define( 'SPEED_BOOSTER_PACK_VERSION', 'v3.
|
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
|
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.5
|
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-08-21')) ); // 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.5'); // 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
|