Reputation: 444
when I give reference of CSS on third party server using http://<link to CSS>
it perfectly loads the CSS.
But When I give reference using //<link to CSS>
the CSS doen't load.
Tested this in chrome and firefox.
Is there any specific reason behind CSS not working with //<link>
?
Upvotes: 0
Views: 29
Reputation: 44
Why do you want to use protocol relative urls?
If your document is on http and you are loading js in https then it wont be any issue. And if the document is https and your trying to load http then it can cause problem. May be some browsers blocked content. If your js is available on https then always use https.
Also read this discussion
Upvotes: 1