Jump to content

jQuery Preloader


alvo

Recommended Posts

Hi All, Im trying to use the following code as a preloader but it's not working as desired, essentially it's just running the whole script at once, before th epage as even loaded.... any idea?

$(document).ready(function() {	 //DO THIS ONCE THE DOM HAS LOADED, BUT BEFORE THE PAGE HAS FULLY LOADED		  $(window).load(function() {	  //DO THIS ONCE THE ENTIRE PAGE AND CONTENT HAS LOADED	  });	 });

Im sure it's me being stupid, but I cant see what I'm doing wrong... ThanksJames

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...