Skip to content

Commit

Permalink
Closes #6133 Remove lazyload background images script when DONOTCACHE…
Browse files Browse the repository at this point in the history
…PAGE (#6144)
  • Loading branch information
Tabrisrp committed Sep 15, 2023
1 parent 98b0513 commit eaab29c
Show file tree
Hide file tree
Showing 6 changed files with 243 additions and 235 deletions.
3 changes: 3 additions & 0 deletions inc/Engine/Media/Lazyload/CanLazyloadTrait.php
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);

namespace WP_Rocket\Engine\Media\Lazyload;

Expand All @@ -17,6 +18,8 @@ protected function should_lazyload() {
rocket_get_constant( 'DONOTLAZYLOAD', false )
||
rocket_get_constant( 'DONOTROCKETOPTIMIZE', false )
||
rocket_get_constant( 'DONOTCACHEPAGE', false )
) {
return false;
}
Expand Down

0 comments on commit eaab29c

Please sign in to comment.