Failed to generate Critical CSS
-
Hi, I have a blog. https://cafeko.net/blog/ I use WordPress and the free version of Jetpack boost. Until yesterday, I didn’t have any problem with Jetpack boost. But somehow, I saw the following error. I tried several in the afternoon, in the evening and at night today but got the same error.
Failed to generate Critical CSS
Could you help me to find what’s wrong and how to fix it?
MarikoThe page I need help with: [log in to see the link]
-
Hey there Mariko!
Thank you very much for providing a link to the website!
Until yesterday, I didn’t have any problem with Jetpack boost. But somehow, I saw the following error. I tried several in the afternoon, in the evening and at night today but got the same error.
Do you remember making any changes to the website? Like adding more posts than usual or something?
Failed to generate Critical CSS
Can you provide a screenshot of the dashboard when you get the error? There should be some text below the error telling you why it occurred.
Could you help me to find what’s wrong and how to fix it?
Also – can open the browser console and then try generating critical css again? There might be some errors in there that could point to a solution!
Hi, @Pete (a11n)
Thank you for your response.
>Do you remember making any changes to the website? Like adding more posts than usual or something?
I didn’t change contents but I just updated the WP setting to use SSL yesterday as per my website host service provider.
“Go to Tools, select Site Health, and click the button of “Site does not use HTTPS”.
Now it shows “The site is using a valid HTTPS connection”.
Also updated the URL part from
“http://cafeko.net/blog/“
to
https://cafeko.net/blog/
Please find attached screenshot.
> Can you provide a screenshot of the dashboard when you get the error? There should be some text below the error telling you why it occurred.
Please find attached. It’s in Japanese. The error message is in English is this.
“Critical CSS generation failed An unexpected error has occurred. This error may be temporary, so try updating your Critical CSS.”
Anything you need to check, please let me know.
Thank you
Mariko

Hi, @Pete (a11n)
In the developer tool, I saw many errors when run jetpack-boost. Please find attached log.load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.7.1:5 JQMIGRATE: Migrate is installed, version 3.4.1
Mixed Content: The page at ” was loaded over HTTPS, but requested an insecure element ”. This request was automatically upgraded to HTTPS, For more information see
Mixed Content: The page at ” was loaded over HTTPS, but requested an insecure element ”. This request was automatically upgraded to HTTPS, For more information see
Mixed Content: The page at ” was loaded over HTTPS, but requested an insecure element ”. This request was automatically upgraded to HTTPS, For more information see
Mixed Content: The page at ” was loaded over HTTPS, but requested an insecure element ”. This request was automatically upgraded to HTTPS, For more information see
Mixed Content: The page at ” was loaded over HTTPS, but requested an insecure element ”. This request was automatically upgraded to HTTPS, For more information see
Mixed Content: The page at ” was loaded over HTTPS, but requested an insecure element ”. This request was automatically upgraded to HTTPS, For more information see
Chrome is moving towards a new experience that allows users to choose to browse without third-party cookies.
Chrome is moving towards a new experience that allows users to choose to browse without third-party cookies.
Chrome is moving towards a new experience that allows users to choose to browse without third-party cookies.
Chrome is moving towards a new experience that allows users to choose to browse without third-party cookies.
jetpack-boost.js?minify=false&ver=d044502eb40fb199a3d1&fver=20241129073644:58 Generating Critical CSS will often leave errors in your console. Most of them are nothing to worry about – just the sounds of your browser complaining about our strict security settings. Check out the following page for more information: https://jetpack.com/support/performance/jetpack-boost/jetpack-boost-console-error/
Blocked script execution in ” because the document’s frame is sandboxed and the ‘allow-scripts’ permission is not set.
Blocked script execution in ” because the document’s frame is sandboxed and the ‘allow-scripts’ permission is not set.
Blocked script execution in ” because the document’s frame is sandboxed and the ‘allow-scripts’ permission is not set.
Blocked script execution in ” because the document’s frame is sandboxed and the ‘allow-scripts’ permission is not set.
Blocked script execution in ” because the document’s frame is sandboxed and the ‘allow-scripts’ permission is not set.
Blocked script execution in ” because the document’s frame is sandboxed and the ‘allow-scripts’ permission is not set.
Blocked script execution in ” because the document’s frame is sandboxed and the ‘allow-scripts’ permission is not set.
Blocked script execution in ” because the document’s frame is sandboxed and the ‘allow-scripts’ permission is not set.
Blocked script execution in ” because the document’s frame is sandboxed and the ‘allow-scripts’ permission is not set.
Blocked script execution in ” because the document’s frame is sandboxed and the ‘allow-scripts’ permission is not set.
Blocked script execution in ” because the document’s frame is sandboxed and the ‘allow-scripts’ permission is not set.
Blocked script execution in ” because the document’s frame is sandboxed and the ‘allow-scripts’ permission is not set.
Blocked script execution in ” because the document’s frame is sandboxed and the ‘allow-scripts’ permission is not set.
Blocked script execution in ” because the document’s frame is sandboxed and the ‘allow-scripts’ permission is not set.
Blocked script execution in ” because the document’s frame is sandboxed and the ‘allow-scripts’ permission is not set.
Blocked script execution in ” because the document’s frame is sandboxed and the ‘allow-scripts’ permission is not set.
/blog/?jb-generate-critical-css=1733963320282:1 Blocked script execution in ‘https://cafeko.net/blog/?jb-generate-critical-css=1733963320282’ because the document’s frame is sandboxed and the ‘allow-scripts’ permission is not set.
/blog/?jb-generate-critical-css=1733963320282:1 Blocked script execution in ‘https://cafeko.net/blog/?jb-generate-critical-css=1733963320282’ because the document’s frame is sandboxed and the ‘allow-scripts’ permission is not set.
/blog/?jb-generate-critical-css=1733963320282:1 Blocked script execution in ‘https://cafeko.net/blog/?jb-generate-critical-css=1733963320282’ because the document’s frame is sandboxed and the ‘allow-scripts’ permission is not set.
/blog/?jb-generate-critical-css=1733963320282:1 Blocked script execution in ‘https://cafeko.net/blog/?jb-generate-critical-css=1733963320282’ because the document’s frame is sandboxed and the ‘allow-scripts’ permission is not set.
/blog/?jb-generate-critical-css=1733963320282:1 Blocked script execution in ‘https://cafeko.net/blog/?jb-generate-critical-css=1733963320282’ because the document’s frame is sandboxed and the ‘allow-scripts’ permission is not set.
/blog/?jb-generate-critical-css=1733963320282:1 Blocked script execution in ‘https://cafeko.net/blog/?jb-generate-critical-css=1733963320282’ because the document’s frame is sandboxed and the ‘allow-scripts’ permission is not set.
/blog/?jb-generate-critical-css=1733963320282:1 Blocked script execution in ‘https://cafeko.net/blog/?jb-generate-critical-css=1733963320282’ because the document’s frame is sandboxed and the ‘allow-scripts’ permission is not set.
/blog/?jb-generate-critical-css=1733963320282:1 Blocked script execution in ‘https://cafeko.net/blog/?jb-generate-critical-css=1733963320282’ because the document’s frame is sandboxed and the ‘allow-scripts’ permission is not set.
/blog/?jb-generate-critical-css=1733963320282:1 Blocked script execution in ‘https://cafeko.net/blog/?jb-generate-critical-css=1733963320282’ because the document’s frame is sandboxed and the ‘allow-scripts’ permission is not set.
/blog/?jb-generate-critical-css=1733963320282:1 Blocked script execution in ‘https://cafeko.net/blog/?jb-generate-critical-css=1733963320282’ because the document’s frame is sandboxed and the ‘allow-scripts’ permission is not set.
/blog/?jb-generate-critical-css=1733963320282:1 Blocked script execution in ‘https://cafeko.net/blog/?jb-generate-critical-css=1733963320282’ because the document’s frame is sandboxed and the ‘allow-scripts’ permission is not set.
/blog/?jb-generate-critical-css=1733963320282:1 Blocked script execution in ‘https://cafeko.net/blog/?jb-generate-critical-css=1733963320282’ because the document’s frame is sandboxed and the ‘allow-scripts’ permission is not set.
/blog/?jb-generate-critical-css=1733963320282:1 Blocked script execution in ‘https://cafeko.net/blog/?jb-generate-critical-css=1733963320282’ because the document’s frame is sandboxed and the ‘allow-scripts’ permission is not set.
/blog/?jb-generate-critical-css=1733963320282:1 Blocked script execution in ‘https://cafeko.net/blog/?jb-generate-critical-css=1733963320282’ because the document’s frame is sandboxed and the ‘allow-scripts’ permission is not set.
/blog/?jb-generate-critical-css=1733963320282:1 Blocked script execution in ‘https://cafeko.net/blog/?jb-generate-critical-css=1733963320282’ because the document’s frame is sandboxed and the ‘allow-scripts’ permission is not set.
/blog/?jb-generate-critical-css=1733963320282:1 Blocked script execution in ‘https://cafeko.net/blog/?jb-generate-critical-css=1733963320282’ because the document’s frame is sandboxed and the ‘allow-scripts’ permission is not set.
jetpack-boost.js?minify=false&ver=d044502eb40fb199a3d1&fver=20241129073644:14POST https://cafeko.net/blog/wp-json/jetpack-boost-ds/critical-css-state/action/set-provider-css 403 (Forbidden)attemptRequest @ jetpack-boost.js?minify=false&ver=d044502eb40fb199a3d1&fver=20241129073644:14
request @ jetpack-boost.js?minify=false&ver=d044502eb40fb199a3d1&fver=20241129073644:14
ACTION @ jetpack-boost.js?minify=false&ver=d044502eb40fb199a3d1&fver=20241129073644:14
mutationFn @ jetpack-boost.js?minify=false&ver=d044502eb40fb199a3d1&fver=20241129073644:14
fn @ jetpack-boost.js?minify=false&ver=d044502eb40fb199a3d1&fver=20241129073644:64
y @ jetpack-boost.js?minify=false&ver=d044502eb40fb199a3d1&fver=20241129073644:64
u @ jetpack-boost.js?minify=false&ver=d044502eb40fb199a3d1&fver=20241129073644:64
t @ jetpack-boost.js?minify=false&ver=d044502eb40fb199a3d1&fver=20241129073644:64
execute @ jetpack-boost.js?minify=false&ver=d044502eb40fb199a3d1&fver=20241129073644:64
await in execute
mutate @ jetpack-boost.js?minify=false&ver=d044502eb40fb199a3d1&fver=20241129073644:64
setProviderCss @ jetpack-boost.js?minify=false&ver=d044502eb40fb199a3d1&fver=20241129073644:24
(anonymous) @ jetpack-boost.js?minify=false&ver=d044502eb40fb199a3d1&fver=20241129073644:24
await in (anonymous)
(anonymous) @ jetpack-boost.js?minify=false&ver=d044502eb40fb199a3d1&fver=20241129073644:24
m @ jetpack-boost.js?minify=false&ver=d044502eb40fb199a3d1&fver=20241129073644:24
(anonymous) @ jetpack-boost.js?minify=false&ver=d044502eb40fb199a3d1&fver=20241129073644:24
Ur @ react-dom.min.js?ver=18.3.1&fver=20241117093536:10
El @ react-dom.min.js?ver=18.3.1&fver=20241117093536:10
(anonymous) @ react-dom.min.js?ver=18.3.1&fver=20241117093536:10
xl @ react-dom.min.js?ver=18.3.1&fver=20241117093536:10
fl @ react-dom.min.js?ver=18.3.1&fver=20241117093536:10
Nn @ react-dom.min.js?ver=18.3.1&fver=20241117093536:10
(anonymous) @ react-dom.min.js?ver=18.3.1&fver=20241117093536:10
setTimeout
(anonymous) @ jetpack-boost.js?minify=false&ver=d044502eb40fb199a3d1&fver=20241129073644:64
y @ jetpack-boost.js?minify=false&ver=d044502eb40fb199a3d1&fver=20241129073644:64
b @ jetpack-boost.js?minify=false&ver=d044502eb40fb199a3d1&fver=20241129073644:64
o @ jetpack-boost.js?minify=false&ver=d044502eb40fb199a3d1&fver=20241129073644:64
batch @ jetpack-boost.js?minify=false&ver=d044502eb40fb199a3d1&fver=20241129073644:64 i @ jetpack-boost.js?minify=false&ver=d044502eb40fb199a3d1&fver=20241129073644:64execute @ jetpack-boost.js?minify=false&ver=d044502eb40fb199a3d1&fver=20241129073644:64
mutate @ jetpack-boost.js?minify=false&ver=d044502eb40fb199a3d1&fver=20241129073644:64
(anonymous) @ jetpack-boost.js?minify=false&ver=d044502eb40fb199a3d1&fver=20241129073644:64
(anonymous) @ jetpack-boost.js?minify=false&ver=d044502eb40fb199a3d1&fver=20241129073644:24
onResult @ jetpack-boost.js?minify=false&ver=d044502eb40fb199a3d1&fver=20241129073644:24
mutationFn @ jetpack-boost.js?minify=false&ver=d044502eb40fb199a3d1&fver=20241129073644:14
await in mutationFn
fn @ jetpack-boost.js?minify=false&ver=d044502eb40fb199a3d1&fver=20241129073644:64
y @ jetpack-boost.js?minify=false&ver=d044502eb40fb199a3d1&fver=20241129073644:64
u @ jetpack-boost.js?minify=false&ver=d044502eb40fb199a3d1&fver=20241129073644:64
t @ jetpack-boost.js?minify=false&ver=d044502eb40fb199a3d1&fver=20241129073644:64
execute @ jetpack-boost.js?minify=false&ver=d044502eb40fb199a3d1&fver=20241129073644:64
await in execute
mutate @ jetpack-boost.js?minify=false&ver=d044502eb40fb199a3d1&fver=20241129073644:64
(anonymous) @ jetpack-boost.js?minify=false&ver=d044502eb40fb199a3d1&fver=20241129073644:64
(anonymous) @ jetpack-boost.js?minify=false&ver=d044502eb40fb199a3d1&fver=20241129073644:24
onClick @ jetpack-boost.js?minify=false&ver=d044502eb40fb199a3d1&fver=20241129073644:26
Xa @ react-dom.min.js?ver=18.3.1&fver=20241117093536:10
B @ react-dom.min.js?ver=18.3.1&fver=20241117093536:10
W @ react-dom.min.js?ver=18.3.1&fver=20241117093536:10
qe @ react-dom.min.js?ver=18.3.1&fver=20241117093536:10
Ke @ react-dom.min.js?ver=18.3.1&fver=20241117093536:10
(anonymous) @ react-dom.min.js?ver=18.3.1&fver=20241117093536:10
dl @ react-dom.min.js?ver=18.3.1&fver=20241117093536:10
V @ react-dom.min.js?ver=18.3.1&fver=20241117093536:10
Je @ react-dom.min.js?ver=18.3.1&fver=20241117093536:10
pe @ react-dom.min.js?ver=18.3.1&fver=20241117093536:10
fe @ react-dom.min.js?ver=18.3.1&fver=20241117093536:10Thank you very much for the information! This looks like a bug in Jetpack Boost.
It seems it was working and then all of a sudden it stopped. I’m unsure of the reason yet.
Could you contact us via this page? I would like to continue the investigation there and I might need more information. Make sure to include a link to this thread!
I await your response.
Hi Pete (a11n)
Thank you for checking. I opened support request #9168151.
Thank you.Found it, thank you!
The issue was solved by disabling WAF(Web Application Firewall) in the hosting service control panel.
Thank you all for your support.Mariko
The topic ‘Failed to generate Critical CSS’ is closed to new replies.