Skip to content

Commit

Permalink
Disable ALR if DOM extension is not loaded
Browse files Browse the repository at this point in the history
fixes #7002 disabling Automatic Lazy Rendering if dom extension is not loaded
  • Loading branch information
alfonso100 committed Dec 13, 2024
1 parent dd33f7b commit 927a100
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions inc/Engine/Optimization/LazyRenderContent/Context/Context.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ public function is_allowed( array $data = [] ): bool {
return false;
}

// Check if the DOM extension is loaded
if ( ! extension_loaded( 'dom' ) ) {
return false;
}

/**
* Filters to manage lazy render content optimization
*
Expand Down

0 comments on commit 927a100

Please sign in to comment.