Is there a way to lazy load the Google Maps API only when the map enters the viewport?
I have a one-page WordPress website with a WP Go Maps map on the homepage. GTmetrix shows that maps.googleapis.com/maps/api/js adds about 337 KB on the initial page load.
I would like the page content (hero, text, images) to load first and initialize the map only when the user scrolls to the map section.
Is there a built-in option or recommended method to defer the map loading?