Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 749219
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T14:24:35+00:00 2026-05-14T14:24:35+00:00

My landing page contains a big google maps portion, which slows down the loading

  • 0

My landing page contains a big google maps portion, which slows down the loading time. I am trying to do the following:

  1. Load the static elements first so the page loads fast initially.
  2. Display a loading notification in the map placeholder so that the user knows that the map is coming up
  3. Load and display the map

I have done this:

$(document).ready(function() {
  map_initialize();
}

The map_initialize() function loads the map into its container div. However, this still will not display the static elements fist. The page will wait until the map_initialize() is finished, then load the static elements at the same time as the map.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T14:24:35+00:00Added an answer on May 14, 2026 at 2:24 pm

    The window.onload event will wait for the images, and any other resource on the document, to load before it gets fired:

    The load event fires at the end of the
    document loading process. At this
    point, all of the objects in the
    document are in the DOM, and all the
    images and sub-frames have finished
    loading.

    Source: Mozilla Dev Center: window.onload

    You may also want to check out the following Stack Overflow post for further reading:

    • Execute JavaScript When Page Has Fully Loaded

    Therefore all you need to do is to set the window.onload event handler as follows:

    window.onload = map_initialize;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to code landing page which by reading Culture will decide whether
I'm trying to remove a landing page when I click on a link on
My CSS styles stop working if I type any argument following my landing page
i use Google Analytics with sub-domains and an iframe. The landing page on sub.mydomain.com
All the landing page generators i found are horribly outdated, except for unbounce.com which
I'm trying to redirect users within my network to a specific landing page on
I am trying to create a landing page, where multiple elements all trigger a
I am trying to create a landing page here: http://www.serik.me and it looks good
What I'm trying to do is change a landing page image based on the
I am creating a splash page for a rails app which contains an email

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.