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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T12:05:36+00:00 2026-05-11T12:05:36+00:00

Is it possible to preload all page contents (like showing a loading bar /

  • 0

Is it possible to preload all page contents (like showing a loading bar / animated gif.. or loading text.. ) until the contents are fully loaded and then displayed to the user/visitor ? If this is possible, can you give me just directions or resources to follow to achieve this. Because I was able to find image preloaders easily, but I am seeking for a preloading technique that will preload all content on the page before being displayed.

  • 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. 2026-05-11T12:05:37+00:00Added an answer on May 11, 2026 at 12:05 pm

    There’s no need to use Ajax for this. Simply set the page’s wrapper div display to none. Then change it to block when the document is loaded.

    Your code might look like this, using vanilla javascript:

    <script type='text/javascript'>     function preloader() {         document.getElementById('preloader').style.display = 'none';         document.getElementById('container').style.display = 'block';     }      window.onload = preloader; </script>  <style> div#wrapper {     display: none; }  div#preloader {                  top: 0; right: 10px;     position:absolute;     z-index:1000;     width: 132px; height: 38px;     background: url(path/to/preloaderBg.png) no-repeat;     cursor: wait;     text-shadow: 0px 1px 0px #fefefe;  //webkit                  } </style>  <body>     <div id='preloader'>Loading... Please Wait.</div>     <div id='wrapper'>         <!-- page contents goes here -->     </div> </body> 

    Update, in jQuery:

    <script type='text/javascript'>     // Use $(window).load(fn) if you need to load 'all' page content including images, frames, etc.     $(document).ready(function(){          $('#preloader').hide();         $('#container').show();     }); </script> 

    Related documents: Events/ready, Events/load, CSS/css & Core/$

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

Sidebar

Ask A Question

Stats

  • Questions 124k
  • Answers 125k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer A migration should not be used to feed the database.… May 12, 2026 at 5:06 am
  • Editorial Team
    Editorial Team added an answer I would suggest checking out ONCLEANUP objects. They allow you… May 12, 2026 at 5:06 am
  • Editorial Team
    Editorial Team added an answer Have a look at ComboBox.AutoCompleteMode. May 12, 2026 at 5:06 am

Related Questions

How can you preload an entire web page using JavaScript so that I can
I'm trying to preload about 150 images and I want to be able to
We're working on a product that may or may not have differing license schema
I want to display a map in a MFC application (Visual Studo 2008 with

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.