GoogleWebComponents / google-map

Google Maps web components

Home Page:https://elements.polymer-project.org/elements/google-map

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make use of intersection observer to delay on first load

TimvdLippe opened this issue · comments

Often times, the google maps element is not visible on the first page load/above the fold. It would be nice to that instead of executing in attached, the element is initialized when the element is in viewport. An intersection observer can be used to trigger the initialization (if the browser supports it). Possibly it could also lazy-load the google-apis, instead of eagerly loading.