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
4,517
Replies
8
Views
3,546
Newer threads
Replies
1
Views
6,380
Replies
2
Views
2,845
Replies
3
Views
4,646
Latest threads
Replies
1
Views
23
Replies
4
Views
84
Replies
0
Views
136
Replies
0
Views
43
Replies
2
Views
592
Recommended threads
Replies
3
Views
2,686
WTS sold
Replies
0
Views
3,625
Replies
2
Views
3,715
Replies
4
Views
2,631
Replies
4
Views
3,296

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