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

Eoon

New member
Joined
Mar 18, 2013
Messages
35
Points
0
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

New member
Joined
Mar 5, 2013
Messages
397
Points
0
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!
 

ElixantTechnology

New member
Joined
Nov 26, 2014
Messages
622
Points
0
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
12
Views
3,591
Replies
8
Views
2,760
Newer threads
Replies
1
Views
3,041
Replies
2
Views
2,197
Replies
3
Views
2,913
Latest threads
Replies
1
Views
2
Replies
3
Views
16
Replies
1
Views
19
Replies
0
Views
39

Latest postsNew threads

Referral contests

Referral link for :

Sponsors

Popular tags

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