Open fredericalpers opened 10 months ago
@fredericalpers Below are some of my analyses about those ways "Load the Maps JavaScript API" I. Use "Dynamic Library Import"
=> Old users will have difficulty creating mapID
II. Use "Direct Script Loading Tag"
Advantage:
Disadvantage:
Implement:
III. Use the NPM js-api-loader package: not suitable because it is not necessary to install additional packages
@yeneastgate thank you, we will review this carefully. :)
Due to the priority and relevance of other issues and projects, this issue will be postponed to v5.3
Initiative
Improve the onOffice for WP-Websites Plugins' usability and performance
Epic
Implement proper loading patterns for Google Maps JavaScript API
User story
As a real estate agent using the onOffice for WP-Websites Plugin, I am concerned about the current implementation of loading the Google Maps JavaScript API directly without a callback, as it may lead to race conditions and suboptimal performance. To ensure a more reliable and efficient integration, I seek the implementation of the correct loading patterns recommendet by Google for the Google Maps API.
To address this concern and align with best practices recommenden by Google, I propose the adoption of correct loading patterns for the Google Maps API.
Tasks
By implementing the correct loading patterns for the Google Maps JavaScript API, the onOffice for WP-Websites Plugin can enhance its performance, reliability and overall user experience, ensuring a seamless integration with Google Maps functionalities.