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 6331953
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T18:10:08+00:00 2026-05-24T18:10:08+00:00

Is there a way to detect when a page has finished loading ie all

  • 0

Is there a way to detect when a page has finished loading ie all its content, javascript and assets like css and images?

so like:

if(PAGE HAS FINISHED LOADING)
{
// do something amazing
}

and also additionally if the page has been loading for more than 1 min then do something else such as:

if(PAGE HAS BEEN LOADING FOR 1 MIN)
{
// do something else amazing
}

I’ve seen websites like Apple’s MobileMe do similar checks but haven’t been able to figure it out in their huge code libraries.

Can anyone help?

Thanks

EDIT: This is essentially what I want to do:

// hide content
$("#hide").hide();

// hide loading
$("#loading").hide();

// fade in loading animation
setTimeout($('#loading').fadeIn(), 200);

jQuery(window).load(function() {
  $("#hide").fadeIn();

  $("#loading").fadeOut(function() {
    $(this).remove();
    clearInterval(loadingAnim);
  });

  setTimeout(function() {
    $("#error").fadeIn();
  }, 60000);
});
  • 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-24T18:10:09+00:00Added an answer on May 24, 2026 at 6:10 pm
    jQuery(window).on("load", function () {
        alert('page is loaded');
    
        setTimeout(function () {
            alert('page is loaded and 1 minute has passed');   
        }, 60000);
    
    });
    

    Or http://jsfiddle.net/tangibleJ/fLLrs/1/

    See also http://api.jquery.com/load-event/ for an explanation on the jQuery(window).load.

    Update

    A detailed explanation on how javascript loading works and the two events DOMContentLoaded and OnLoad can be found on this page.

    DOMContentLoaded: When the DOM is ready to be manipulated. jQuery’s way of capturing this event is with jQuery(document).ready(function () {});.

    OnLoad: When the DOM is ready and all assets – this includes images, iframe, fonts, etc – have been loaded and the spinning wheel / hour class disappear. jQuery’s way of capturing this event is the above mentioned jQuery(window).load.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any way I can detect when my page has been set as
Is there any way possible to detect if a user has disabled JavaScript after
Is there a way to detect when a page has been loaded in a
Is there a way to detect that a DirectShow filtergraph has reached the end
In my JavaScript I detect images that are on the page, amongst them those
On a page, something like jsFiddle, that executes user inputed Javascript, is there a
Is there a way to detect if a flash movie contains any sound or
Is there a way to detect, from within the finally clause, that an exception
Is there a way to detect if the user is holding down the shift
Is there a way to detect whether IIS is enabled or not? I know

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.