Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Nifty. Note, however, that if you want to use it to share javascript demos or something, and you're on a google apps domain that forces https, you might hit something similar to "[blocked] The page at https://googledrive.com/whatever ran insecure content from http://code.jquery.com/jquery-1.9.1.min.js. So you'll have to include your own copy of jQuery or Require or whatever.


You can use the Google CDN's copy of the jQuery file -- it supports HTTPS. The URL would be : https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.mi...

The CDN also hosts a few of other popular libraries too : https://developers.google.com/speed/libraries/devguide


If you use Google's hosted libraries, you can embed it like so, and it should seamlessly work over SSL.

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>


Same goes for cdnjs, jsdelivr, bootstrapcdn, etc.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: