[Libgdx]AssetManager in html app

I like to use the libgdx’s asset manager to easily be able to load and dispose a lot of resources but it seems that it works as an asynchronous task cause I have a “Could not submit AsyncTask: Couldn’t load image” so is there a way around it?