Google Maps - Resource interpreted as Script but transferred with MIME type image/png Google Maps - Resource interpreted as Script but transferred with MIME type image/png google-chrome google-chrome

Google Maps - Resource interpreted as Script but transferred with MIME type image/png


I'm had open a issue in google maps and i got the answer:

There is a problem with the address of this api using htttp protocol. Replace with https that will work.

ex: 'https://maps.googleapis.com/maps/api/js?v=3'


Basically you may assume that it's a bug that has to be fixed in the API, not on clientside.

What you can try and should do:

In production you should always load the release-version of the API.

Currently you try to load the API-version 3.9.2 which isn't available anymore.

Instead the experimental version has been loaded.

Currently the documentation says that 3.17 is experimental and 3.16 is the release-version, but I think this isn't correct(not updated yet).

run inside the console:

alert(window.google.maps.version) 

...and you'll see what has been loaded

As it seems there has been an update, 3.17 is release and 3.18 experimental(I guess the new 3.18 is the source of the issue)

For more info about controlling the version and getting the last stable release see: https://developers.google.com/maps/documentation/javascript/versions