When DOM is ready use fn.delay(2000) to check if a specific flag was set, if it wasn't, trigger the slide-in effect.



On 9 Nov 2009, at 18:22, pradador wrote:


I'm working on a site where we need the main content to slide-in after
a small delay. On most pages it works well by calling $(element).slide
('hide') on domready and then calling $(element).slide('in') on load.
However one of the pages has a 600Kb background so on a slow
connection it can take a while for the content to slide back in.

How can I set up a trigger that slides the content in either when the
load event fires or when say 1-2 seconds pass, whichever comes first?

Reply via email to