getify/LABjs — Issue #53: wait() not working as expected
Author: filippo
Created: 2011-10-14 14:46:16+00:00
State: open

Hi,
I'm trying to use LABjs to load my scripts, but the .wait() is not working as I thought.
I'm using version 2.0.3 and testing with firefox 7.0.1

Here is my code:
```
$LAB.setGlobalDefaults({Debug: true})
.script("../js/mustache-min.js")
.script("http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js").wait()
.script("../js/jquery.lightbox-0.5.min.js")
.script("../js/s3slider.js").wait()
```
Sometimes jQuery, which is loaded from an absolute url, is the last thing that gets executed.
Here is a page example that reproduces the problem:
http://rewind.sgconsulting.it/test-lab/

And here is a screenshot of my firebug console for the pageshowing the error:
http://rewind.sgconsulting.it/test-lab/test_LABjs.png

I also tried using //ajax.googleapis.com ... but the behavior is the same
Am I doing something wrong?

P.S. I sent an email directly to Kyle via Google+ a couple of days ago, but I think Google+ changed the formatting and it was unreadable so I'm reposting the issue here.