ululalbab / google-motion-charts-with-r

Automatically exported from code.google.com/p/google-motion-charts-with-r
0 stars 0 forks source link

Load Google API over a secure connection #19

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If the page is viewed over a secure connection (https), then the Google API 
should also be loaded over a secure connection. 

The documentation at <https://developers.google.com/loader/> recommends that 
the API is always loaded over a secure connection:
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
In this case, the patch is trivial (see attachment). 

Howevever, if speed is of paramount interest, one could instead check 
document.location.protocol and load the API over a secure connection only when 
necessary (by dynamically creating the script tag). 

Original issue reported on code.google.com by erik...@gmail.com on 4 Oct 2012 at 9:58

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks Erik, I have change the code for the next package release.
Markus

Original comment by markus.g...@googlemail.com on 9 Oct 2012 at 8:30