Describe the bug
When loading the Map, console shows warning:
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
To Reproduce
Steps to reproduce the behavior:
Add Map to site
Set up map with google keys
load the directory page
See the warning in the console
Screenshots
Expected behavior
No warning.
Isolating the problem (mark completed items with an [x]):
[x] I have deactivated other plugins and confirmed this bug occurs when only Paid Memberships Pro plugin is active.
[x] This bug happens with a default WordPress theme active or Memberlite.
[x] I can reproduce this bug consistently using the steps above.
WordPress Environment
```
WordPress - version: 6.2.2
PMPro - Version 2.10.7
PMPro Map Add On - Version 0.5
PMPro Members Directory - Version 1.1
```
Describe the bug When loading the Map, console shows warning:
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
To Reproduce Steps to reproduce the behavior:
Screenshots
Expected behavior No warning.
Isolating the problem (mark completed items with an [x]):
WordPress Environment