Make asset loading asynchronous and add callbacks for when loading finishes.