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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T18:31:06+00:00 2026-05-31T18:31:06+00:00

This may seem like a basic question. I have a light-weight website and would

  • 0

This may seem like a basic question.

I have a light-weight website and would like to load the whole page at once, so that links to the Home/Contact/… parts of the website will take no time to load.

What would be the best mechanism to implement this?

  • 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-31T18:31:07+00:00Added an answer on May 31, 2026 at 6:31 pm

    I have setup a basic jsfiddle to show how this can be achieved with jquery

    http://jsfiddle.net/9DMBq/

    Basically I created this kind of context with html and css:

    the css:

    <style>
    #container { height: 200px; width: 400px; background-color: #CCC; }
    h3 { font-size: 20px; padding:5px; }
    
    .button {cursor: pointer; padding:10px; background-color: #EEE; margin:5px;}
    
    .content { position: absolute; width: 400px; height: 100px; background-color: #FFF}
    ​</style>
    

    the html:

    <div id="container">
    <span id="homenav" class="button">Home</span>
    <span id="aboutnav" class="button">About</span>
    <br>
    </br>
    <div id="home" class="content">
        <h3>home</h3>
    </div>
    <div id="about" class="content" style="display: none;">
        <h3>about</h3>
    </div>
    </div>
    

    and then I added some Jquery to make it work:

    $('.button').click(function() {
    
        var whereto = $(this).attr("id").replace('nav', '')
    
        $('.content').fadeOut(function() {
            $('#' + whereto).fadeIn()
        })
    })​
    

    I hope this solves your problem although there are many other ways to do this.

    ​

    I originally thought you were referring to having the page only show once all the content had finished loading, however i’ll leave this here just incase;

    This can be accomplished super easy with jquery with the following code

    make sure to reference jquery in the header with :

    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
    

    and then stick the following in the head of your html

    <script>
        $('html').hide();
    
        $(document).ready(function() {
            $('html').show();
        });
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

this may seem like a very basic question, but i have difficulty grasping it,
Hi this may seem like a weird question, but here's my situation: I have
This may seem like a basic/stupid/obviously-answered question, but I wanted to check: why use
This may seem like a basic question, but I'm having trouble figuring out how
I am new to Android, so this may seem like a basic question. But
This may seem like a very basic question, but its been in my head
This may seem like a fairly basic question, for which I apologise in advance.
this may seem like a stupid question but I have a query string which
This may seem like a very basic question but I did not seem to
This may seem like a basic question, but I am not getting how to

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.