In short
Ahrefs flags "HTTPS page links to HTTP JavaScript" when a secure page loads a script over http://. Browsers treat scripts as active mixed content and block them, so whatever the script does simply doesn't happen. Change the script URL to HTTPS, or host the file yourself. If the provider has no HTTPS version, replace the script.
This is the most serious form of mixed content, because browsers don't just warn about it. They block it.
How to fix it
Find the script tag in the page source (search for
src="http://).Try the same URL with
https://. Nearly all current providers support it.Update the tag where it's added: theme header, plugin setting, tag manager, or custom code.
Check the Console on the page; the mixed content error should be gone.
WordPress: old analytics or widget code pasted into theme settings or header plugins is the usual source.
Shopify: check theme.liquid and app snippets.
Webflow and Wix: check custom code in site and page settings.
Custom builds: load scripts with relative paths or full https:// URLs, never http://. Also check Google Tag Manager for custom HTML tags with HTTP scripts.
This guide isn't affiliated with or endorsed by Ahrefs.
Related issues
Sources and references
MDN, Mixed content
web.dev, What is mixed content?

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.



