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

  • Home
  • SEARCH
  • 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

I posed a question that related where I could display Page loading in asp.net
I need to stream a video in Safari for iPhone/iPad with the best possible
Is there a way to 'preload' a user interfaces but to not display it
For reference, the thing I need help with is located at: http://www.photographeller.com/portfolio What I'd
I have a realtively complicated listview in my application, with data fetched from the
I have a few doubts which i am already sure of it but still
Suppose I have an ELF binary that's dynamic linked, and I want to override/redirect
I'm diving into iOS development and I'm building a puzzle game to help me
I have an ogg video which works just fine using the video tag when
I'm trying to implement an OpenSocial gadget for iGoogle . I'm writing my application

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.