I often use the //
relative URI hack. Example:
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
Mostly because of this post: Is it valid to replace http:// with // in a <script src="http://...">?.
However, a guy I am working with on a project says this doesn't work on Mac (Chrome, Firefox, and Safari) or iDevices.
Not having a Mac or said devices, I can't verify it, and it works fine on Windows. Can anyone confirm this?
I can't test it as I don't have a Mac, but there is no reason to believe that mac browsers do not follow RFC 3986 Section 4.2 when resolving URLs.
Your friend probably meant something else.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With