waitUntil

Type: string|string[]
Default: ['networkidle0']
Values: 'load'|'domcontentloaded'|'networkidle0'|'networkidle2'
It specifies a list of events until consider navigation successful:
  • : It considers navigation successful when the whole page, including all dependent resources such as stylesheets images, has been loaded. In certain cases, it might not happen at all.
  • : It's fired as soon as the page DOM has been loaded, without waiting for resources finish loading.
  • networkidle0: It considers navigation successful when page has no networrk activity for half a second. This might never happen if the page is constantly loading multiple resources.
  • networkidle2: It considers navigation successful when page has no more then 2 network requests for half a second. This is useful if page runs a long polling in the background.
microlink-api https://microlink.io&screenshot&waitUntil=domcontentloaded
Different arguments work for different pages. When neither of them work, a good solution would be to navigate with domcontentloaded argument and then simply wait for the needed element to appear on page.
microlink-api https://microlink.io&screenshot&waitUntil=domcontentloaded&waitFor=h1

waitUntil

Type: string|string[]
Default: ['networkidle0']
Values: 'load'|'domcontentloaded'|'networkidle0'|'networkidle2'
It specifies a list of events until consider navigation successful:
  • : It considers navigation successful when the whole page, including all dependent resources such as stylesheets images, has been loaded. In certain cases, it might not happen at all.
  • : It's fired as soon as the page DOM has been loaded, without waiting for resources finish loading.
  • networkidle0: It considers navigation successful when page has no networrk activity for half a second. This might never happen if the page is constantly loading multiple resources.
  • networkidle2: It considers navigation successful when page has no more then 2 network requests for half a second. This is useful if page runs a long polling in the background.
microlink-api https://microlink.io&screenshot&waitUntil=domcontentloaded
Different arguments work for different pages. When neither of them work, a good solution would be to navigate with domcontentloaded argument and then simply wait for the needed element to appear on page.
microlink-api https://microlink.io&screenshot&waitUntil=domcontentloaded&waitFor=h1

By using this website you agree to ourprivacy.