check if the dom is ready before loading the simulation when sim parameter is used