Google Maps JavaScript API has been loaded directly without loading async

Hi! I got this error “Google Maps JavaScript API has been loaded directly without loading=async. This can result in suboptimal performance”.

I think I have found solutin which is: Add “loading=async” into your googlemap script tag.

I wanted to ask how I could update this script on my website? Or can I even? Theme is RentalHive.

Thanks for your message — our team will reply shortly.

In the meantime, you can also get instant help from our AI Assistant, familiar with all the docs and solutions we’ve shared over the years.

Hi,

Thank you for the details.

We are aware of this notice, but please note that it is not an error and does not impact functionality. Since the script loads in the footer, it doesn’t cause any delay in rendering the design.

We will try to address this in future updates, but currently, if you add the async, it may cause the script to load before the Geolocation code, resulting in a JavaScript error. We recommend using caching plugins instead of async, for example, LiteSpeed Cache. If you enable JS deferring there, you’ll get better performance and the scripts will load quietly in the background.

Hi,

ok, thanks for suggestion, will try it!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.