Using // in a <script>'s source
http, https, javascript, url
Solution
All modern browsers will understand that format, including IE 6. (Not sure about IE 5.5).
Actually, this is not a hack, but a perfectly valid URI syntax as per RFC 3986: Section 4.2. Therefore, I say you're good to go.
Problem
I was wondering if anyone had any resources, proof, or personal experience in using the age-old http/https JavaScript `<script>` hack: ``` <script src="//someserver.com/js/script.js"></script> ``` Has anyone encountered issues in any of these browsers (IE 5.5+, FF2+, Chrome, Opera 9+, Safari 3+)? Has anybody had success stories?