SG Optimizer - Version 5.2.3

Version Description

Download this release

Release Info

Developer sstoqnov
Plugin Icon 128x128 SG Optimizer
Version 5.2.3
Comparing to
See all releases

Code changes from version 5.2.2 to 5.2.3

assets/js/lazy-load-images.js CHANGED
@@ -105,6 +105,10 @@
105
  return;
106
  }
107
 
 
 
 
 
108
  if (blankImage && el.tagName === 'IMG' && !el.src) {
109
  el.src = blankImage;
110
  }
@@ -221,7 +225,7 @@
221
  }
222
 
223
  if (removeNode) {
224
- $data(el, dataLazied, 0);
225
  elements.splice(i--, 1);
226
  length--;
227
  }
105
  return;
106
  }
107
 
108
+ if (!el.hasAttribute('data-lazy-sg')) {
109
+ return;
110
+ }
111
+
112
  if (blankImage && el.tagName === 'IMG' && !el.src) {
113
  el.src = blankImage;
114
  }
225
  }
226
 
227
  if (removeNode) {
228
+ //$data(el, dataLazied, 0);
229
  elements.splice(i--, 1);
230
  length--;
231
  }
core/Front_End_Optimization/Front_End_Optimization.php CHANGED
@@ -324,7 +324,7 @@ class Front_End_Optimization {
324
  */
325
  private function check_for_builders() {
326
 
327
- $builder_paramas = apply_filters( 'sgo_pb_params', array( 'fl_builder', 'vcv-action', 'et_fb', 'ct_builder' ) );
328
 
329
  foreach ( $builder_paramas as $param ) {
330
  if ( isset( $_GET[ $param ] ) ) {
324
  */
325
  private function check_for_builders() {
326
 
327
+ $builder_paramas = apply_filters( 'sgo_pb_params', array( 'fl_builder', 'vcv-action', 'et_fb', 'ct_builder', 'tve' ) );
328
 
329
  foreach ( $builder_paramas as $param ) {
330
  if ( isset( $_GET[ $param ] ) ) {
core/Lazy_Load_Images/Lazy_Load_Images.php CHANGED
@@ -144,7 +144,7 @@ class Lazy_Load_Images {
144
  // Replacements.
145
  $replacements = array(
146
  '$1<noscript>$1</noscript>',
147
- '$1src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" data-$2="$3"',
148
  '$1data-$3="$4"',
149
  );
150
 
144
  // Replacements.
145
  $replacements = array(
146
  '$1<noscript>$1</noscript>',
147
+ '$1src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" data-$2="$3" data-lazy-sg="1"',
148
  '$1data-$3="$4"',
149
  );
150
 
readme.txt CHANGED
@@ -169,6 +169,9 @@ Our plugin uses a cookie in order to function properly. It does not store person
169
 
170
  == Changelog ==
171
 
 
 
 
172
  = Version 5.2.2 =
173
  * Improved Events Calendar Compatibility
174
  * Suppressed notices in the REST API in certain cases
169
 
170
  == Changelog ==
171
 
172
+ = Version 5.2.3 =
173
+ * Improved LazyLoad
174
+
175
  = Version 5.2.2 =
176
  * Improved Events Calendar Compatibility
177
  * Suppressed notices in the REST API in certain cases
sg-cachepress.php CHANGED
@@ -10,7 +10,7 @@
10
  * Plugin Name: SG Optimizer
11
  * Plugin URI: https://siteground.com
12
  * Description: This plugin will link your WordPress application with all the performance optimizations provided by SiteGround
13
- * Version: 5.2.2
14
  * Author: SiteGround
15
  * Plugin URI: https://siteground.com
16
  * Text Domain: sg-cachepress
@@ -31,7 +31,7 @@ if ( ! defined( 'WPINC' ) ) {
31
 
32
  // Define version constant.
33
  if ( ! defined( __NAMESPACE__ . '\VERSION' ) ) {
34
- define( __NAMESPACE__ . '\VERSION', '5.2.2' );
35
  }
36
 
37
  // Define slug constant.
10
  * Plugin Name: SG Optimizer
11
  * Plugin URI: https://siteground.com
12
  * Description: This plugin will link your WordPress application with all the performance optimizations provided by SiteGround
13
+ * Version: 5.2.3
14
  * Author: SiteGround
15
  * Plugin URI: https://siteground.com
16
  * Text Domain: sg-cachepress
31
 
32
  // Define version constant.
33
  if ( ! defined( __NAMESPACE__ . '\VERSION' ) ) {
34
+ define( __NAMESPACE__ . '\VERSION', '5.2.3' );
35
  }
36
 
37
  // Define slug constant.