Quote:
Originally Posted by LearningCoder
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.