Skip to content

Commit 8e7faf9

Browse files
committed
release new version 2.60
= 2.6.0 - 2022/07/20 = * This release adds the option to switch OFF WordPress Core Lazy Load. * Feature - Add Option to completely disable WordPress Core Lazy Load. * Tweak - Add the new option switch to the Lazy Load Activation option box. * Tweak - Updated the plugins description to include the new option to disable WordPress Core Lazy Load.
1 parent fc90588 commit 8e7faf9

File tree

3 files changed

+35
-7
lines changed

3 files changed

+35
-7
lines changed

a3-lazy-load.php

+6-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/*
33
Plugin Name: a3 Lazy Load
44
Description: Speed up your site and enhance frontend user's visual experience in PC's, Tablets and mobile with a3 Lazy Load.
5-
Version: 2.5.1
5+
Version: 2.6.0
66
Author: a3rev Software
77
Author URI: https://a3rev.com/
88
Requires at least: 5.6
@@ -31,7 +31,7 @@
3131

3232
define( 'A3_LAZY_LOAD_KEY', 'a3_lazy_load' );
3333
define( 'A3_LAZY_LOAD_PREFIX', 'a3_lazy_load_' );
34-
define( 'A3_LAZY_VERSION', '2.5.1' );
34+
define( 'A3_LAZY_VERSION', '2.6.0' );
3535
define( 'A3_LAZY_LOAD_G_FONTS', false );
3636

3737
use \A3Rev\LazyLoad\FrameWork;
@@ -87,7 +87,7 @@ function a3_lazy_load_plugin_textdomain() {
8787
include( 'admin/a3-lazy-load-admin.php' );
8888

8989
// Defined this function for check Lazy Load is enabled that 3rd party plugins or theme can use to check
90-
$a3_lazy_load_global_settings = get_option( 'a3_lazy_load_global_settings', array( 'a3l_apply_lazyloadxt' => 1, 'a3l_apply_to_images' => 1, 'a3l_apply_to_videos' => 1 ) );
90+
$a3_lazy_load_global_settings = get_option( 'a3_lazy_load_global_settings', array( 'a3l_apply_lazyloadxt' => 1, 'a3l_wpcore_lazyload' => 1, 'a3l_apply_to_images' => 1, 'a3l_apply_to_videos' => 1 ) );
9191
if ( 1 == $a3_lazy_load_global_settings['a3l_apply_lazyloadxt'] && !is_admin() && ( 1 == $a3_lazy_load_global_settings['a3l_apply_to_images'] || 1 == $a3_lazy_load_global_settings['a3l_apply_to_videos'] ) ) {
9292
function a3_lazy_load_enable() {
9393
return true;
@@ -103,6 +103,9 @@ function a3_lazy_load_video_enable() {
103103
return true;
104104
}
105105
}
106+
if ( !is_admin() && isset( $a3_lazy_load_global_settings['a3l_wpcore_lazyload'] ) && 0 == $a3_lazy_load_global_settings['a3l_wpcore_lazyload'] ) {
107+
add_filter( 'wp_lazy_loading_enabled', '__return_false' );
108+
}
106109

107110
/**
108111
* Call when the plugin is activated

admin/settings/template-settings/global-settings.php

+13-1
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,9 @@ public function init_form_fields() {
235235
'is_box' => true,
236236
),
237237
array(
238-
'name' => __( 'Enable Lazy Load', 'a3-lazy-load' ),
238+
'name' => __( 'a3 Lazy Load', 'a3-lazy-load' ),
239239
'id' => 'a3l_apply_lazyloadxt',
240+
'desc' => __( 'On and a3 Lazy Load will lazy load elements that are missed by WordPress Core Lazy Load.', 'a3-lazy-load' ),
240241
'class' => 'a3l_apply_to_load',
241242
'type' => 'onoff_checkbox',
242243
'default' => true,
@@ -245,6 +246,17 @@ public function init_form_fields() {
245246
'checked_label' => __( 'ON', 'a3-lazy-load' ),
246247
'unchecked_label' => __( 'OFF', 'a3-lazy-load' ),
247248
),
249+
array(
250+
'name' => __( 'WordPress Core Lazy Load', 'a3-lazy-load' ),
251+
'id' => 'a3l_wpcore_lazyload',
252+
'desc' => __( 'Switch to OFF to completely disable WordPress core Lazy Load.', 'a3-lazy-load' ),
253+
'type' => 'onoff_checkbox',
254+
'default' => true,
255+
'checked_value' => true,
256+
'unchecked_value' => false,
257+
'checked_label' => __( 'ON', 'a3-lazy-load' ),
258+
'unchecked_label' => __( 'OFF', 'a3-lazy-load' ),
259+
),
248260

249261
array(
250262
'name' => __( 'Lazy Load Images', 'a3-lazy-load' ),

readme.txt

+16-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Contributors: a3rev, a3rev Software, nguyencongtuan
33
Tags: a3 lazy load, Lazy Loading, image lazy load, lazyload
44
Requires at least: 5.6
55
Tested up to: 6.0
6-
Stable tag: 2.5.1
6+
Stable tag: 2.6.0
77
License: GPLv3
88
License URI: http://www.gnu.org/licenses/gpl-3.0.html
99

@@ -16,9 +16,13 @@ a3 Lazy Load is a Mobile Oriented, very simple to use plugin that will speed up
1616
a3 Lazy Load is inspired by and powered by the ressio [Lazy-Load-xt JavaScript](https://github.com/ressio/lazy-load-xt).
1717

1818

19-
= 100% COMPATABLE WITH WORDPRESS 5.9 =
19+
= 100% COMPATABLE WITH WORDPRESS 6.0 =
2020

21-
WordPress 5.5 introduced lazy loading for all images uploaded to a sites media library and 5.7 introduces Core lazy load for iframes and 5.9 contains performance enhancements. a3 Lazy Load Image options work side-by-side with these, but then enhances it by lazy loading all the images loaded from outside of the media library, or on older browsers that do not support the new WP attribute and any iframes or videos that are not lazy loaded by WordPress.
21+
WordPress 5.5 introduced lazy loading for all images uploaded to a sites media library and 5.7 introduces Core lazy load for iframes and 5.9 contained performance enhancements. a3 Lazy Load Image options work side-by-side with these, but then enhances it by lazy loading all the images loaded from outside of the media library, or on older browsers that do not support the new WP attribute and any iframes or videos that are not lazy loaded by WordPress.
22+
23+
= DISABLE WORDPRESS LAZY LOAD =
24+
25+
The plugin includes an option to completely disable WordPress Core Lazy Load if that is what you want to do.
2226

2327
= IMAGE LAZY LOAD =
2428

@@ -198,6 +202,12 @@ Filter tags to add to class name of theme to exclude lazy load on images or vide
198202

199203
== Changelog ==
200204

205+
= 2.6.0 - 2022/07/20 =
206+
* This release adds the option to switch OFF WordPress Core Lazy Load.
207+
* Feature - Add Option to completely disable WordPress Core Lazy Load.
208+
* Tweak - Add the new option switch to the Lazy Load Activation option box.
209+
* Tweak - Updated the plugins description to include the new option to disable WordPress Core Lazy Load.
210+
201211
= 2.5.1 - 2022/06/07 =
202212
* This maintenance release fixes a critical error when updating the plugin settings
203213
* Fix - Add missed $ to _POST constant from textarea control type
@@ -604,6 +614,9 @@ Filter tags to add to class name of theme to exclude lazy load on images or vide
604614

605615
== Upgrade Notice ==
606616

617+
= 2.6.0 =
618+
This release adds the option to switch OFF WordPress Core Lazy Load.
619+
607620
= 2.5.1 =
608621
This maintenance release fixes a critical error when updating the plugin settings
609622

0 commit comments

Comments
 (0)