Skip to content
Nazmul Nikhil
Menu

Broken External JavaScript and CSS Files (Semrush)

Semrush notices scripts or stylesheets from other domains that fail to load. They can break features or layout. Here's how to find and replace them.

Nazmul Nikhil

By

Head of SEO & Assistant Manager, Digital Marketing at Notionhive

Published 1 min read
Broken External JavaScript and CSS Files (Semrush)
Photo: Nenad Radojčić on Unsplash

In short

Semrush notices "Broken external JavaScript and CSS files" when files your pages load from other domains return errors. Common causes are an old CDN version link, a discontinued service, or a widget you stopped paying for. Update the link to a working version, self-host the file, or remove the reference.

When an external script fails, whatever depended on it stops working.

How to fix it

  1. Open DevTools > Console on a flagged page; failed files show in red.

  2. For library files (jQuery, fonts, icon sets), link a current version or host it yourself.

  3. For old services or widgets, remove the embed code.

WordPress: often in theme options "header scripts" boxes or old plugins. Shopify: leftover app snippets in theme.liquid after uninstalling an app. Webflow and Wix: custom code areas in site or page settings.

This guide isn't affiliated with or endorsed by Semrush.

Sources and references

TAGSSemrush Site AuditSemrush broken external javascript and css filesBroken external scriptsCdn file 404
Nazmul Nikhil

About the author

Nazmul Nikhil

Head of SEO & Assistant Manager, Digital Marketing at Notionhive

SEO and AI search consultant in Dhaka, Bangladesh, helping small and mid-size businesses in the USA, UK, Australia and Canada.

Need help with this?

Get it fixed with Technical SEO

I find the issues that cost you traffic and fix them, starting with the pages that matter most.

Keep reading

Related articles

All Site Audit Issues posts →

Get the next guide in your inbox

One email when a new SEO or AI search guide goes live.

Ready to grow?

Get a free audit of your website, or book a 30-minute call to talk through your goals.

Nazmul Hasan

Talk to Nazmul directly

Reply within 24h

WhatsApp +880 1682835118
nazmulnikhil@gmail.com