-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wpr-beacon.min.js is added even if DONOTROCKETOPTIMIZE is set to true #6972
wpr-beacon.min.js is added even if DONOTROCKETOPTIMIZE is set to true #6972
Comments
Reproduce the issue:
Identify the root causeThe issue is that the Scope a solutionTo solve the issue, we need to modify the Code ChangesModify
|
I want to relate between this one and the PR: #6998 Checking something before the final confirmation. |
One comment: you can use |
Re-opening following this founding: https://wp-media.slack.com/archives/CUT7FLHF1/p1729070587176049
|
data-wpr-lazyrender keeps breaking my websites. setting rocket_above_the_fold_optimization and DONOTROCKETOPTIMIZE do not work. Hot fix please!? |
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 ifDONOTROCKETOPTIMIZE
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:
define('DONOTROCKETOPTIMIZE', true);
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
Screenshots
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
The text was updated successfully, but these errors were encountered: