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

Related Questions

Like many people I've been doing image preload for a long time, but not
Is it possible to preload or otherwise cache @font-face fonts, most likely with javascript,
Let's say my website has 5 pages of content. Is it possible to preload
I posed a question that related where I could display Page loading in asp.net
I'm trying to do a fully customized Facebook Like-Box. I want to have this
Is there a way I can preload all beans from the XML file at
Is it possible with jQuery to identify if the browser currently isn't loading anything,
How can you preload an entire web page using JavaScript so that I can
Is it possible to pass arguments to my library, which is loaded with LD_PRELOAD
is it possible to create something like static object using EJB3 in Jboss. 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.