3 ms·
Everybody could use protocol relative URLs with the google CDN to simplify things: <script src="//ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js"></scr
by seiji 16y ago
Everybody could use protocol relative URLs with the google CDN to simplify things:
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js"></script>
- endlessvoid94 16y agoI learn something new every day.
- dasil003 16y agoholy shit! Is that universally supported?
- ktsmith 16y agoYes, but there's bugs when used with stylesheets in IE7 & IE8 http://www.stevesouders.com/blog/2010/02/10/5a-missing-schema-double-download/ http://www.stevesouders.com/blog/2010/02/10/5a-missing-schem...
- estel 16y agoWitchcraft! (That's awesome)
- threepointone 16y agoMany thanks you just saved me from some ugly code I was using to check for http/https; this method is FAR more elegant.