Open pauljacobson opened 6 months ago
Support References
This comment is automatically generated. Please do not edit it.
I looked into the issue for for the specified site. Looks like they block browsers that do not have JS and cookies enabled. We run a headless browser to generate Critical CSS that disables javascript for efficiency.
I am closing this issue as there isn't any actionable on our end. The pages need to be able to load without JS to work. If you think there is more to discuss, feel free to open it again.
@haqadn I have landed on a similar case, and the error seems to happen because the site is Private. Switching it to Coming Soon fixes the issue. Is that expected? 8214335-zen
Hi @mxhassani, Yes and no. The site needs to be publicly accessible to be able to generate critical CSS.
Setting it to Coming Soon mode would not work properly, and even if it did, the generated critical CSS would be wrong, so I wouldn't recommend that.
Critical CSS is used to optimize the site load for visitors(mainly first-time visitors). If the site is not publicly visible yet, there is no point in generating critical CSS for that. So, I'd tell the user not to worry about it now and only regenerate when they make it public.
I have created an issue related to this https://github.com/Automattic/jetpack/issues/37452
Impacted plugin
Boost
Quick summary
Our user reported seeing a "Failed to generate Critical CSS" error when Jetpack Boost was automatically attempting to regenerate critical CSS. This error appeared coupled with a
403
error.I noticed a set of errors on the Jetpack page that suggest a connection issue:
See here: 3435f-pb/
The Jetpack Connection looks good (there are some inconsistencies in the Incremental Sync). The domain is connected using
A
records via Cloudflare.Steps to reproduce
A clear and concise description of what you expected to happen.
Jetpack Boost should generate critical CSS without producing an error.
What actually happened
Instead, there is an error when Boost attempts to generate critical CSS. See here (around 45 seconds):
https://github.com/Automattic/jetpack/assets/2912202/54a1f612-f2e6-4c4f-9bbc-7dd2c3a5be08
There were no corresponding errors or warnings in my browser Console when this occurred.
Impact
One
Available workarounds?
No but the platform is still usable
Platform (Simple and/or Atomic)
Atomic
Logs or notes
Chat: 8037651-zen Follow-up ticket: 8037799-zen
I tested this on the following: