alvo Posted May 3, 2012 Share Posted May 3, 2012 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 More sharing options...
justsomeguy Posted May 3, 2012 Share Posted May 3, 2012 That part looks fine. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now