top of page
  • Writer's pictureBrent Payne

Loads page resources using protocol relative URIs

When your webpage includes resources using protocol-relative URLs, it indicates that these resources can be fetched using either HTTP or HTTPS. This could pose a security risk by being vulnerable to certain types of attacks.


Why is this important?

Using protocol relative URLs might have been a widespread practice for supporting both HTTP and HTTPS without specific URL schemes. While it’s a flexible solution, it’s unsafe when such a URL loads over HTTP, opening a window for security breaches such as the well-known Man-on-the-side attack.


What does the Optimization check?

The Optimization checks for any use of protocol relative URIs within the website's internal links to resources like scripts, CSS files, or images, whether they are HTTP or HTTPS.


Examples that trigger this Optimization

The following examples demonstrate the use of protocol relative URIs that would activate this hint:

JavaScript library link:


External CSS stylesheet link:

<link href='//fonts.googleapis.com/css?family=Istok+Web' rel='stylesheet' type='text/css'>


Image source using protocol relative URI:


How do you resolve this issue?

It is advisable to replace all protocol relative URLs with absolute HTTPS URLs, ensuring that all resources are loaded securely. For resources not available over HTTPS, consider hosting the resource yourself, using alternative secure hosts, or omitting the resource if necessary.


Further reading

5 views0 comments

Recent Posts

See All

CSS file size too large discovered in SEO audit

In our SEO audits at Loud Interactive, we often come across a common yet significant issue that can heavily impact your website's loading speed and overall performance: CSS file size too large. Let's

CSS file size too large discovered in SEO audit

When conducting an SEO audit on your site, one issue that might come up is that your CSS file size is too large. But why does this matter, and what can you do about it? Let's dive in. What's the Issue

H1 tag missing or empty" Discovered in an SEO Audit

At Loud Interactive, we've encountered a common issue during our SEO audits that can significantly impact a website's performance on search engines: the "H1 tag missing or empty" warning. This problem

bottom of page