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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
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:
the html:
and then I added some Jquery to make it work:
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 :
and then stick the following in the head of your html