I've got an open source package that I've worked on for SugarCRM that uses the Google Map API. Users have reported that there is a bug with the Chrome Browser (https loading issue). The problem occurs when the SugarCRM URL is defined with the https protocol and the Maps API URL is http. Because this is an installed package, it may be used with a http or https protocol; it depends on where it's installed.
Example SugarCRM URL:
https://www.mydomain.com/index.php
Current Google Maps API Call:
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
I'm considering simply changing it to https, but will that fix issue? Should I instead write some logic to check the site's URL (from SugarCRM config) for http or https and make it matching protocols? What about other external JS files such as jquery?
Also, I've seen people using // which is supposed to let the browser decided on the protocol? Is that compatible with all the latest browsers; such as Firefox, IE, Chrome & Safari?