-
Notifications
You must be signed in to change notification settings - Fork 228
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
Only apply performance hints optimizations when page html is not empty #7298
Only apply performance hints optimizations when page html is not empty #7298
Conversation
Coverage summary from CodacySee diff coverage on Codacy
Coverage variation details
Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: Diff coverage details
Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: See your quality gate settings Change summary preferencesCodacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more Footnotes
|
afb303a
to
e9ef9b6
Compare
63280e1
to
3f940f9
Compare
#7298) Co-authored-by: Khadreal <Khadreal@users.noreply.github.com> Co-authored-by: Khadreal <opeyemi.khadri@gmail.com>
Description
When visiting a taxonomy page (category page) with a wrong url, we reset the buffer to return empty HTML but then we apply the beacon script to this empty HTML which causes the page to load as an empty page instead of returning empty string which will show the unoptimized page in that case.
Type of change
Detailed scenario
Steps to reproduce the first issue:
http://wprocket.localhost/category/uncategorized/
http://wprocket.localhost/category/anythinghere/uncategorized/
Steps to reproduce the second issue:
Technical description
Documentation
Here we added a bailout check to make sure that we have a valid HTML before adding the script into it.
New dependencies
N/A
Risks
N/A
Mandatory Checklist
Code validation
Code style
Unticked items justification
Will check the automation tests.
Additional Checks