• Resolved Isabel Pinhel

    (@isabelpinhel)


    Hi Andrea,

    Would it be possible for this plugin to load Google Maps API async? I get a warning in the console stating it results in suboptimal performance and indeed, lighthouse performance results on pages loading google maps via this plugin are not great.

    Also, a separate warning indicates that “As of March 1st, 2025, google.maps.places.Autocomplete is not available to new customers. Please use google.maps.places.PlaceAutocompleteElement instead.”. Are there any plans to accommodate this?

    Many thanks,

    Isabel

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Andrea Tarantini

    (@dontdream)

    Hi Isabel,

    Thanks for your report!

    I added “loading=async” in BP Distance Search 1.4.2, but had to remove it in 1.4.4 because it didn’t work well on all installations.

    If you wish, you can try BP Distance Search 1.4.3, which loads the Maps JavaScript API asynchronously. You can use WP Rollback to switch between versions of the plugin. Please let me know if async works for you!

    As for your second point, I’m currently researching the new API and hope to have a new version ready as soon as possible.

    Thread Starter Isabel Pinhel

    (@isabelpinhel)

    Hi Andrea,

    That is great! I look forward to the new version of this plugin accommodating the new API.

    Many thanks,

    Isabel

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Google Maps JavaScript API has been loaded directly without loading=async’ is closed to new replies.