Google Mobile Friendly Error

Highlighted
New Contributor

How to resolve the following issue which I am getting on Google Mobile-Friendly Test?

 

err.png

 

Thanks

Reply
0 Upvotes
4 Replies 4
Highlighted
Occasional Contributor

In the bottom of this page/template you've added some javascript:

 

$(window).bind("load", function() {
	$(function() {
		$("a").attr('href', function(i, h) {
			h= h + (h.indexOf('?') != -1 ? "&" + utm_parameter1 : "?" + utm_parameter1);
			return h;
		});
	});
});

This causes an error as 'indexOf' is undefined. It looks like a setup to add utm parameters to links, but it isn't working. I would either rewrite or remove that.

Reply
0 Upvotes
Highlighted
New Contributor

I know about this but I am looking for first 4 error not last one.

 

Thanks

Reply
0 Upvotes
Highlighted
Occasional Contributor

The other errors are CORS and Content Security Policies blocking some resources from loading. 

 

I'm not sure what page you are seeing that error on, but if it's an externally hosted site you'll need to modify those records to allow access. If it's hosted in HubSpot, you cannot edit these and would have to instead remove the offending content. The upgrade insecure requests is an nginx setting to force https 

Reply
0 Upvotes
Highlighted
New Contributor
Reply
0 Upvotes