fix possible race condition
supports calling of ready() depending on assets without calling load() for assets first.
build