Missing callback when calling Google Maps API

Created on 2 August 2023, over 1 year ago
Updated 7 August 2023, over 1 year ago

Problem/Motivation

When viewing a map there is an error in the console

Google Maps JavaScript API has been loaded directly without a callback. This is not supported and can lead to race conditions and suboptimal performance. For supported loading patterns please see https://goo.gle/js-api-loading

Steps to reproduce

Open a page with a map.

Proposed resolution

Use Function.prototype as callback function as this was recommended here.

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇩🇪Germany yannickoo Berlin

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

Comments & Activities

Production build 0.71.5 2024