What's the cleanest method to include an external javascript using the current HTTP开发者_开发知识库 protocol type to avoid SSL partial security issues.
<script src="//whatever-domain.com/path/to/script.js" type="text/javascript"></script>
Dropping the scheme, but leaving the double slash will use the current scheme
//www.example.com/foo/bar.js
精彩评论