HelloMum / COMP47360-Smart-Tourist-Guide

GNU General Public License v2.0
2 stars 0 forks source link

Google Maps JavaScript API Loaded Directly Without loading=async #97

Open HelloMum opened 3 months ago

HelloMum commented 3 months ago

Description The Google Maps JavaScript API has been loaded directly without using the loading=async attribute. This can lead to suboptimal performance, as the script blocks the rendering of other resources. Following best practices for loading the Google Maps JavaScript API can enhance the performance and user experience of the application.

Steps to Reproduce Check the HTML where the Google Maps JavaScript API is included. Observe that the script tag does not use the loading=async attribute.

Expected Behavior The Google Maps JavaScript API script should be loaded asynchronously using the loading=async attribute to ensure optimal performance.

https://developers.google.com/maps/documentation/javascript/overview#Loading_the_Maps_API