>From the site: Bottom line: *only* the few special scripts out there, like libraries, that do their own DOM-ready detection, and don't do so in a dynamically-loaded-after-page-load safe way, will have possible problems if loaded by LABjs, so avoid it *only* in those rare cases. Simply load those special scripts with a manual script tag like always before. In all other cases, including your plugins which rely on that logic working correctly, *LABjs is perfectly safe and good to use*!
I would change your code to use their suggestion. On Mon, Nov 23, 2009 at 6:15 AM, eskimoblood <koebe...@gmail.com> wrote: > I'm trying to use mootools with labJS (http://labjs.com). Using wait() > and domready fails some times. It seems that on adding the event there > is no check if the dom is still ready, or what is the problem here. > > <script type="text/javascript" src="../js/LAB.js"></script> > <script type="text/javascript"> > $LAB > .script(" > http://exeter:8080/web3CI/js/mootools-1.2.4-core.js") > .wait(function(){ > window.addEvent('domready', function(){ > alert('test') > }) > }); > </script> >