Skip to content

Commit

Permalink
Exclude Trust Index Google Widget CSS from LazyLoad for CSS Backgroun…
Browse files Browse the repository at this point in the history
…d Images (#7055)
  • Loading branch information
wordpressfan authored Oct 23, 2024
1 parent 815e639 commit 8c1fed9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion inc/Engine/Media/Lazyload/CSS/Front/Extractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,13 @@ protected function extract_urls( string $content, string $file_url = '' ): array
*
* @param string[] $urls Ignored URLs.
*/
$ignored_urls = (array) apply_filters( 'rocket_lazyload_css_ignored_urls', [] );
$ignored_urls = (array) apply_filters(
'rocket_lazyload_css_ignored_urls',
[
'trustindex-google-widget.css',
'cdn.trustindex.io',
]
);

foreach ( $matches as $match ) {

Expand Down

0 comments on commit 8c1fed9

Please sign in to comment.