Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
04-04-2010, 12:01 AM #1
- Join Date
- Apr 2010
- Thanked 0 Times in 0 Posts
jQuery: denote cursor busy until ready
I'd like to know how to mark the cursor as busy until the ready event.
04-05-2010, 03:43 PM #2
- Join Date
- Jun 2007
- Perth, Western Australia
- Thanked 58 Times in 57 Posts
Let me first say that what you're attempting is somewhat difficult as document ready occurs quite quickly so perhaps unless there's many lines of HTML.
Now ideally we'll set the cursor to wait on the body but this requires us to put a script tag immediately after the body as the body isn't loaded if we do it in the head. Now personally I feel this is rather messy, I'm just used to putting it in the head so my solution was instead of targetting the body, target the html element which is loaded - I don't know if this has any compatability issues.
Now that solves most problems except one.. the fact that if any element has a specific cursor style e.g. anchors have the style pointer and thus won't inherit the waiting cursor, I wasn't able to fix this so here is the resulting code.
Users who have thanked Iszak for this post:
Ralph Shnelvar (04-05-2010)