Skip to main content

Broken CSS

CSS files which return a broken page status code such as 404 or 501

Priority: Critical

Impact: Negative

What issues it may causeโ€‹

Broken CSS files may result in errors on pages causing a poor user experience and may affect the indexing of the page if the rendered content is not visible to Googlebot.

How do you fix itโ€‹

Restore the CSS file on the so it responds with a 200 status, or update the URL in style link to a working CSS file.

What is the positive impactโ€‹

The user experience may be improved if the broken CSS file was used for the page styling, potentially resulting in improved rankings for the page and all other pages on the site.

How to fetch the data for this report templateโ€‹

You will need to run a crawl for report template to generate report. When report has been generated and you have crawl id you can fetch data for the report using the following query:

query GetReportForCrawl($crawlId: ObjectID!, $reportTemplateCode: String!) {
getCrawl(id: $crawlId) {
reportsByCode(
input: {
reportTypeCodes: Basic
reportTemplateCodes: [$reportTemplateCode]
}
) {
rows {
nodes {
... on CrawlUrls {
url
foundAtUrl
level
httpStatusCode
disallowedPage
failedReason
css
fileExtension
foundInGoogleAnalytics
foundInGoogleSearchConsole
foundInBacklinks
foundInList
foundInLogSummary
foundInWebCrawl
foundInSitemap
}
}
}
}
}
}

Try in explorer