Closed (fixed)
Project:
Geofield Map
Version:
3.0.14
Component:
Code
Priority:
Minor
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
22 Feb 2024 at 18:07 UTC
Updated:
8 Mar 2024 at 17:34 UTC
Jump to comment: Most recent
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...
| Comment | File | Size | Author |
|---|---|---|---|
| async-load-for-gmaps-geofield-map.patch | 882 bytes | sidgrafix |
Comments
Comment #2
sidgrafix commentedComment #4
itamair commentedThanks @sidgrafix ... nice catch and fix.
I slightly changed it, but committed still crediting it to you.
This fix will be part of next Geofield Map module release ...