Approximating a mootools' .slide('out') on an element prior to Fx.Slide instantiation
问题 It'd be simple to add var myFx = new Fx.Slide(element); to window.addEvent('domready'...) , but because I am loading "sub-pages" using AJAX, the mootools objects of these elements inside these pages need to be instantiated after have loaded fully. If I tried using domready, the element would not be found, simple because it doesn't exist yet. I've been working around this with setTimeout(function() { ... }, 500); , but this leaves a 500ms delay between page load and element effect creation. i