So this protip is very simple.
//somesite.com/somepath/somefile.js or relative
If you use
//somesite.com/somepath/somefile.js for all your references, the browser will fill in the protocol for you. So if you're visiting the page with https, the ref will become
I recently had to make on of my sites be HTTPs compliant. Luckily it was as easy as setting up an SSL and change the default protocol for my sites.
Because of this trick, I had no insecure resources and no warnings on my site.