I would highly recommend using an AMD loader, such as requirejs or stealjs. The benefits cannot be understated, it's exceedingly simple to use, and you wouldn't need to care about the ready event either.
↧