Remove LazyLoad CSS Background Images script from not processed pages #6133
Labels
effort: [XS]
< 1 day of estimated development time
module: lazyload background css images
priority: medium
Issues which are important, but no one will go out of business.
type: enhancement
Improvements that slightly enhance existing functionality and are fast to implement
Milestone
Before submitting an issue please check that you’ve completed the following steps:
Describe the bug
When there's no WP Rocket buffer involved in processing the page, we should not inject the script
To Reproduce
Steps to reproduce the behavior:
define('DONOTCACHEPAGE', true)
to wp configExpected behavior
When buffer is not involved, the script should not be added
Acceptance Criteria (for WP Media team use only)
define('DONOTCACHEPAGE', true)
is setadd_filter( 'do_rocket_generate_caching_files', '__return_false' );
)The text was updated successfully, but these errors were encountered: