Encountering the et_core_page_resource error in your Google Search Console can be concerning, even if it doesn't impact your website's SEO and visibility in search results.
This specific error typically relates to issues with how Google crawls and indexes your Divi-built pages.
The Problem
You might see the following error surfacing in your Google Search Console report:
Crawling-error
<script>
var et_site_url = 'https://site.com';
var et_post_id = 313;
function et_core_page_resource_fallback(a, b) {
"undefined" === typeof b && (b = a.sheet.cssRules && 0 === a.sheet.cssRules.length);
b && (a.onerror = null, a.onload = null, a.href ? a.href = et_site_url + "/?et_core_page_resource=" + a.id + et_post_id : a.src && (a.src = et_site_url + "/?et_core_page_resource=" + a.id + et_post_id))
}
</script>
Why are you seeing this error?
This is because the Static CSS File Generation is enabled in WordPress Dashboard → Divi → Theme Options → Builder → Advanced Tab.
This option generates a CSS file to store all of the Divi custom styles, which is designed to improve website loading times. Our Divi Performance Enhancement blog post provides more details about this.
That error occurs because Google crawlers will try to index that file, which has no useful content. To prevent this, we use Javascript code that adds a 404 for the page.
Is this bad for SEO?
Absolutely not, here's an answer by John Mueller - webmaster trends analyst at Google- which you can find in this link:
Q: What about the funky URLs that are “clearly broken?
A: When our algorithms like your site, they may try to find more great content on it, for example, by trying to discover new URLs in JavaScript.
If we try those “URLs” and find a 404, that’s great and expected. We don’t want to miss anything important (insert overly-attached Googlebot meme here)
You can find a lot more details on Do 404 errors hurt my site? Google's official blog post.
Fix this error regardless of what was mentioned above
In this case, we suggest following these steps:
Go to WordPress Dashboard → Divi → Theme Options → Builder → Advanced Tab
Disable the Static CSS File Generation option
Use other services for CSS caching and minifying. The How to Minify Your Website’s CSS, HTML & Javascript article will provide more options.