Packages can load in bad order when loaded using jQuery. The callback is upon load, not upon execution. This gives a 5ms time window for the actual execution for each .js file.
@@ -247,7 +247,7 @@ amber = (function() {
dataType: "script",
url: url,
cache: deploy,
- success: callback
+ success: function () { setTimeout(callback, 5); }
});
}