I updated the documentation mentioning the default behavior when there is no wait. The js code is evaluated after the page finished loading.