41 ms·
I ran into a problem with https -- will google allow me to securely reference their CDN?
by endlessvoid94 16y ago
I ran into a problem with https -- will google allow me to securely reference their CDN?
- seiji 16y agoWorks for me: https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js
- endlessvoid94 16y agodamn, my solution was to host it locally. how did i blatantly not try this?
- seiji 16y agoEverybody 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.