Switching to SSL, issues with javascript on https, how to solve?

Eoon

Member
Registered
Joined
Mar 18, 2013
Messages
23
Points
3
I have a site and just switch it to https with hope that it can increase SEO scores as google noticed.

but problem I am facing javascript files didn't work on https pages, so java script sources loaded as "http://" while must be "https://" resource, which causes JavaScript to not load properly and cause any problems on my site

for example, my javascript's using as following
Code:
http://www.mysite.com/myjavascript.js
http://ajax.googleapis.com/ajax/libs/jquery.min.js

how to solve this problem?

I'm using a wordpress site


Eoon
 

Maxwell

Well-known member
Registered
Joined
Mar 5, 2013
Messages
189
Points
28
Your problem can be solved by removing lines at the beginning each line

looks like

//www.mysite.com/myjavascript.js
//ajax.googleapis.com/ajax/libs/jquery.min.js
please don't apply for images, css or image links on your site. It's for javascript file.

Hope that helps!
 

Hassan

Well-known member
Registered
Joined
Nov 11, 2014
Messages
433
Points
0
It could be setup issue with SSL certificate i advise you contact provider for this.
 

ElixantTechnology

Well-known member
Registered
Joined
Nov 26, 2014
Messages
281
Points
43
There is an increasing amount of browser compatibility issues with SSL Certificates as of recent that I have been noticing. Be sure that while loading resources such as Javascripts/CSS within SSL Secured pages that they too are loaded via. SSL. A hosted solution would be best fit, as using remote content can cause conflict with the said certificates. Firefox especially is notable for these issues.
 
Older Threads
Replies
8
Views
3,224
Replies
11
Views
4,116
Newer Threads
Recommended Threads

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top