View Single Post
Old 12-01-2012, 01:20 AM   PM User | #11
AndrewGSW
Senior Coder

 
Join Date: Apr 2011
Location: London, England
Posts: 2,120
Thanks: 15
Thanked 354 Times in 353 Posts
AndrewGSW will become famous soon enough
Quote:
Originally Posted by LearningCoder View Post
Would this be done completely separate from the jQuery and does it need to be done before any of the jQuery is run?

Sorry I've never even looked at caching. Heard a lot but never read into it. :s

Regards,

LC.
The pre-loading can be done as the page is constructed, or afterwards in $(document).ready(). I'm guessing it would be sensible to do it in document.ready, so that it doesn't interfere with the initial construction of the page(?) - assuming the user is not likely to start hovering while the page is still loading.

Perhaps you could ignore the pre-loading aspect until everything else is working.
__________________
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
Validate your HTML and CSS
AndrewGSW is offline   Reply With Quote