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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T19:29:34+00:00 2026-06-02T19:29:34+00:00

I want to show preload image while main page is preparing and then loading.

  • 0

I want to show preload image while main page is preparing and then loading. I think I can’t use Ajax, because I need to reload whole main page. I want to implement next: First, I request the preload page and a server sends me it. Second, the server start to form main page(It takes about 15-20 seconds).
Third, when the server ends his work it send me the main page. But how can I implement 3rd part?

The second idea is separate the main page on 2 parts. One of them is the preload page which contains whole main page’s contents without 'busy time' contents. And then use Ajax to load 'busy time' contents.

What do you think, colleagues?

  • 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-06-02T19:29:35+00:00Added an answer on June 2, 2026 at 7:29 pm

    Try this. You’ll need a loading spinner element. Also, the $(function(){}); activate when the DOM (html structure) is loaded. That’s the closest you’ll ever get to when the visitor first reaches the page. The body element is hidden, then waits till all the images and everything all fully rendered and the CSS and Javascript files are loaded and working, then it crossfades from the spinner to the content and removes the spinner.

    $(function(){
        $('body').hide();
        $('html').append('<div id="loading-spinner"></div>');
        $('body').load(function(){
            $('#loading-spinner').fadeOut('fast').remove();
            $(this).fadeIn('fast');
        });
    });
    

    You’ll need some CSS to apply a GIF to the background of the loading spinner element and center it:

    #loading-spinner {
        width:100px;
        height:100px;
        background:url(loading.gif);
        left:50%;
        margin-left:-50px;
        top:50%;
        margin-top:-50px;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want show UITableView, but i want use it with Page Control. For example
I want to show a open dialog for the user, where the user can
I have a paragraph <p>hello<br>wor&nbsp;l&nbsp;d</p> then I want show the paragraph's html in another
i want show tooltip with image tag and i have written code like below
i want show my NSMutableArray Count in a UILabel ,,,,,,,,,, can any one help
I have long page. I want show some info, so when user scroll page,
I want to load remote content of parent div upon click of image. While
I want show my project main window in the middle of the screen .
first I have a sortable container with class=viewport , then I want show each
I want show a web page (google) when i click on the button in

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.