Gmaps not loaded with async

Created on 22 February 2024, 4 months ago
Updated 8 March 2024, 4 months ago

Being this isn't technically a bug I've opened this issue as a feature request.

Each time a gmap loads via geofield_map browser console gives warning saying the maps API should be loaded using async.

So here is a patch that adds async when gmaps api is used. Super simple just added + '&loading=async' to the scriptPath in geofield_map_gmap_formatter.js and geofield_map_widget.js making this
scriptPath += '&key=' + gmap_api_key + '&loading=async';

As near as I can tell this doesn't break anything...

✨ Feature request
Status

Fixed

Version

3.0

Component

Code

Created by

🇺🇸United States sidgrafix

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024