We have been using and recommending protocol relative URLs like so:
<script src="//code.jquery.com/jquery-2.2.3.min.js"></script>
This was made popular by:
https://www.paulirish.com/2010/the-protocol-relative-url/
But, I believe, this something we should be NOT be doing now on, since the author have long since updated their advice.
More reference: https://jeremywagner.me/blog/stop-using-the-protocol-relative-url/
Hence we need to audit our code-base for such uses, list them here and update the links after confirmation.
Original seen in https://github.com/freeCodeCamp/freeCodeCamp/pull/16488#issuecomment-358730193
/cc @freeCodeCamp/moderators
@raisedadead I agree with Paul Irish's logic here. @BerkeleyTrue what do you think? Should we create an issue to go through and turn these relative URLs into https URLs?
Note, this should only be done for URLs that we can confirm are served over https already.
I'm for making cdn links explicitly https.
@raisedadead @BerkeleyTrue Sounds like a plan!
I've updated the issue title and added the Help Wanted label.
@LorenpNYC on github when you're looking at this issue go to the top of your page and find this button:
Change it to ignore or Not watching
@raisedadead
I am starting to work on this.
@tarun7singh OK - thanks for jumping on this one. Please keep us posted on your progress with it, and let us know if you have any questions :)
I have made a PR request to complete this issue.
Most helpful comment
I'm for making cdn links explicitly https.