Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On page load Google warning in console - JavaScript API has been loaded directly without a callback #69

Open
3 tasks done
kimwhite opened this issue Jun 6, 2023 · 0 comments

Comments

@kimwhite
Copy link

kimwhite commented Jun 6, 2023

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:

  1. Add Map to site
  2. Set up map with google keys
  3. load the directory page
  4. See the warning in the console

Screenshots
Screenshot 2023-06-06 at 8 33 54 AM

Expected behavior
No warning.

Isolating the problem (mark completed items with an [x]):

  • I have deactivated other plugins and confirmed this bug occurs when only Paid Memberships Pro plugin is active.
  • This bug happens with a default WordPress theme active or Memberlite.
  • 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 ```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant