Site's Javascript Won't Load in Browser on HTTPS, ok on HTTP

I hope I’m in the right place to ask this…

A site I designed has a JavaScript slideshow on the Home page and a music player on the “Listen” page. For some reason both are no longer loading in Firefox or Chrome using HTTPS:// but come up fine when loaded as HTTP://

I assume this is because the browser doesn’t see the JavaScript as secure (?) How I can remedy this?


Hi @tmx108 and a warm welcome to the forum.

I checked the site using the following free validation tool and found numerous errors which may or may not be the problem. I find that clearing the errors and warnings usually solves most browser problems:


The first thing I would do is to redirect to Normally there is an option in your CPanel to do this. Otherwise you can use an .htaccess file to force HTTPS.

As to the fact that assets included via HTTP won’t load on a site served via HTTPS site, this is expected behaviour. If you look at your browser’s console (usually accessed by the F12 key) you will see:

See here for further details on the error:

The way to fix this is to use the HTTPS version of jQuery.`So this:

<script type="text/javascript" src=""></script>


<script src=""></script>

That’s quite an old version of jQuery by the way. You might want to look at updating it?

1 Like

James, a belated thank you for your help! Your solution worked perfectly :).

Also, John, I appreciate the validator link. I’ll work on fixing those errors.


This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.