timeout to force the dom to be generated