My landing page contains most of Google Maps, which slows down loading time. I am trying to do the following:
- First load the static elements so that the page loads quickly.
- Display a loading notification in the map placeholder so that the user knows that the map is approaching.
- Download and map display
I have done this:
$(document).ready(function() {
map_initialize();
}
The function map_initialize()loads the map into its div container. However, this still does not display static elements with a fist. The page will wait for completion map_initialize(), then load static elements simultaneously with the map.
source
share