-
Notifications
You must be signed in to change notification settings - Fork 233
Description
Before submitting an issue please check that you’ve completed the following steps:
Yes - Made sure you’re on the latest version
Yes - Used the search feature to ensure that the bug hasn’t been reported before
Describe the bug
wpr-beacon.min.js
is added even if DONOTROCKETOPTIMIZE
is set to true. So when you visit a page, the script is added, the detection triggers, and the entry is added into the wpr_above_the_fold table.
OCI will only obey the filter: add_filter( 'rocket_above_the_fold_optimization', '__return_false' );
To Reproduce
Steps to reproduce the behavior:
- add
define('DONOTROCKETOPTIMIZE', true);
- Visit a page in incognito
- See the beacon script injected
- See the entry being added to the database
Expected behavior
DONOTROCKETOPTIMIZE
should stop all the optimizations including Optimize Critical Images.
And maybe Lazy Render Content in 3.17. That's the logic for other optimizations
https://i.imgur.com/3K7V2lP.png
Additional context
related slack thread: https://wp-media.slack.com/archives/C43T1AYMQ/p1726159393548059
Acceptance Criteria (for WP Media team use only)
Clear instructions for developers, to be added before the grooming