Open jbd7 opened 1 year ago
I'm not able to reproduce this error. Could you link to a page where it occurs?
Apologies, it's a warning, not an error.
Example page I found, one currently live: https://bisogno.org/archivi/emilia-romagna/burocrazia-in-emilia-romagna/
Warning:
Example from Google documentation: <script async src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&callback=initMap"> </script>
Where it may be potentially missing: https://github.com/cyberhobo/wordpress-geo-mashup/blob/72c5e6726090361ac1af6d1bdea6ffa544c208c0/render-map.php#L230
That helps, thanks. It looks like synchronous loading is still supported but async is preferred.
WordPress script enqueuing doesn't support async loading, but it might be accomplished with another filter. The initialization callback will also have to be implemented and enqueued synchronously.
Hi there,
I'm observing an error in my console with my WP install, that seems to come only when GeoMashup is active on a page:
From the little I understand, what may be required is:
callback
parameter when loading the Google Maps API//maps.google.com/maps/api/js
to//maps.googleapis.com/maps/api/js
Documentation: https://developers.google.com/maps/documentation/javascript/url-params
I'm not sure if it comes from GeoMashup: I also see that the API call is made passing a
$ver=
parameter, with the WP version, that is not specified in the official documentation.