PluginProbe
Elementor Website Builder – more than just a page builder / 3.30.0-beta1
Elementor Website Builder – more than just a page builder v3.30.0-beta1
4.3.4 4.3.3 4.3.2 4.3.1 4.3.0 4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 All 457 releases
← All changes | modules/lazyload/module.php +4 -6 4.1.1 → 3.30.0-beta1 View file →
@@ -24,12 +24,13 @@
24 24 if ( ! $this->is_lazy_load_background_images_enabled() ) {
25 25 return;
26 26 }
27 27
28 + if ( ! $this->should_lazy_load_background_images() ) {
29 + return;
30 + }
31 +
28 32 add_action( 'wp_head', function() {
29 - if ( ! $this->should_lazy_load_background_images() ) {
30 - return;
31 - }
32 33 ?>
33 34 <style>
34 35 .e-con.e-parent:nth-of-type(n+4):not(.e-lazyloaded):not(.e-no-lazyload),
35 36 .e-con.e-parent:nth-of-type(n+4):not(.e-lazyloaded):not(.e-no-lazyload) * {
@@ -51,11 +52,8 @@
51 52 <?php
52 53 } );
53 54
54 55 add_action( 'wp_footer', function() {
55 - if ( ! $this->should_lazy_load_background_images() ) {
56 - return;
57 - }
58 56 ?>
59 57 <script>
60 58 const lazyloadRunObserver = () => {
61 59 const lazyloadBackgrounds = document.querySelectorAll( `.e-con.e-parent:not(.e-lazyloaded)` );