City Google Maps

Google Maps with great styles. Flexible manager of maps and data, many options, easy to use.

Back to City Google Maps Support

afonso2022
afonso2022

Hi! I am getting this error:

Google Maps JavaScript API has been loaded directly without loading=async. This can result in suboptimal performance. For best-practice loading patterns please see https://goo.gle/js-api-loading

Can you give some instructions on how to fix this? Thank you!

Edgar

City
City

Hello Edgar,

Thank you for your message. I’ll look into this issue.

The JavaScript is currently included here: https://github.com/Ci-ty/googlemaps-plugin/blob/main/components/MapDetails.php#L49

Best regards

City
City

Hello,

A new version has been released:

  • v1.0.1 - Added scripts async loading

Hope this helps.

Regards

Last updated

eceliahudson3619090207
eceliahudson3619090207

Hi,

To resolve the error, you should load the Google Maps JavaScript API asynchronously. You can do this by adding the loading=async parameter to your script tag.

Make sure to replace YOUR_API_KEY with your actual API key, and initMap should be the name of your initialization function. This change will help improve the performance of your application.

happyeverydayforeveryone98226
happyeverydayforeveryone98226

Great to see this issue addressed! Loading the Google Maps JavaScript API asynchronously is a smart move for performance. It’s similar to how I approach getting accurate information quickly. If you’re ever working with video content and need to extract information efficiently, you might find the YouTube Transcript Generator quite useful for generating transcripts.

happyeverydayforeveryone98226
happyeverydayforeveryone98226

This is a great discussion on optimizing Google Maps API loading! Ensuring scripts load asynchronously, as highlighted in the v1.0.1 release, is crucial for performance. For anyone interested in visual transformations, I recently discovered Convert Image to Pixel Art, which creates fantastic retro-style images from photos. It’s a fun tool with impressive results!

happyeverydayforeveryone98226
happyeverydayforeveryone98226

This is a great breakdown of the Google Maps JavaScript API loading issue and the fix! It's always good to see these performance optimizations being addressed. For anyone working with AI-generated text and needing to clean up invisible characters or normalize punctuation for cleaner results, I'd recommend checking out Text Cleaner AI. It's a handy tool for that purpose.

happyeverydayforeveryone98226
happyeverydayforeveryone98226

This is a great example of how optimization can really improve performance. Loading the Google Maps API asynchronously, as suggested, is a smart move for anyone building web applications that rely on it. For those interested in another AI-powered creative tool, check out the AI Pixel Generator – it's fantastic for turning images into pixel art quickly!

happyeverydayforeveryone98226
happyeverydayforeveryone98226

Great to see this issue addressed with the async loading! It's always a good idea to optimize performance, especially with APIs like Google Maps. For anyone looking to improve how their content is perceived, I found Attractive Test to be really useful for optimizing profile photos.

happyeverydayforeveryone98226
happyeverydayforeveryone98226

This is a great breakdown of the Google Maps API loading issue! It's really helpful that the fix for suboptimal performance by adding loading=async is clearly explained. For anyone looking for creative assets to enhance their projects, you might want to check out the AI Image Generator By Nano Banana Pro for quick and free image generation.

happyeverydayforeveryone98226
happyeverydayforeveryone98226

This is a great fix for the Google Maps API loading issue! Asynchronous loading is definitely the way to go for better performance. Speaking of optimising assets, if anyone here deals with image formats, I've found Converter PNG to SVG incredibly useful for converting PNGs to crisp, editable SVGs for logos and icons. It's a handy tool for keeping things efficient!

happyeverydayforeveryone98226
happyeverydayforeveryone98226

This is a great thread! It's excellent that the team addressed the suboptimal performance warning by implementing async loading for the Google Maps JavaScript API. For anyone dealing with document generation or needing to present information cleanly, I've found the Markdown to PDF Converter website very helpful for quickly converting Markdown files into polished PDFs.

christinechretien98234
christinechretien98234

Okay, so performance hitches, eh? The dreaded async loading issue. This sounds like a classic case of browser optimization gone sideways. Imagine maps loading sluggishly... what a nightmare! I see the Google Maps JavaScript API causing a ruckus again. It's always something, isn't it? Ah, I remember wrestling with website loading times during a frantic project. We were seeing similar delays and it turns out too many scripts were loading synchronously. It was like trying to play Slither io on dial-up internet; utterly painful! We implemented async loading across the board, and the difference was night and day.

yearling.lion.godx98290
yearling.lion.godx98290

Love exploring cities through Google Maps! It's amazing how detailed and stylish the maps have become. Feels like I'm uncovering hidden gems with every click. Speaking of puzzles, has anyone tried Wordle Unlimited lately? It's become my daily brain teaser after a virtual city tour. The flexible data management makes planning real trips easier too!

1-14 of 14