Reputation: 44431
For one of my projects, I need to load the google closure library:
<script src="http://closure-library.googlecode.com/svn/trunk/closure/goog/base.js"></script>
But I am getting:
[blocked] The page at http://xxx/index.html ran insecure content from http://closure-library.googlecode.com/svn/trunk/closure/goog/base.js.
How can I use the google closure library in my project?
Upvotes: 0
Views: 343
Reputation: 5815
I know the question is for base.js , there is also a compiled library in one JS file.
<script src="http://resources.programmingclosure.com/closure-lite.js"></script>
Source : http://www.programmingclosure.com/closure-lite/
Closure Lite API
Closure Lite includes the following APIs from Closure:
EDIT : from http://www.programmingclosure.com/closure-lite/ A single JavaScript file that contains the core of the Closure Library
Closure Lite aims to solve this problem by providing the core of the Closure Library in a single, minified JavaScript file that can be included in your own web page.
Upvotes: 1
Reputation: 6168
If your site is running on HTTPS, then you need to access the Google Closure Library via HTTPS as well. Try using a protocol-relative link to keep your site's protocol usage consistent with the way it retrieves the Google Closure code.
<script src="//closure-library.googlecode.com/svn/trunk/closure/goog/base.js""></script>
Upvotes: 1