Windows 10 will reach EOS (end of support) on October 14, 2025. For more information, see this article.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

How to find page/dom load completed

  • 1 reply
  • 1 has this problem
  • 1 view
  • Last reply by TyDraniu

more options

Hi,

We are working on an Open Source Chrome extension: Digital Assistant Client

We have a script which invokes clicks on web pages. We record a sequence of clicks as a 'flow' or 'task'. i.e. After the first click is invoked, we wait 5 s for the page to load and then invoke the 2nd click.

setTimeout(function(){UDAPluginSDK.showhtml();}, 5000);

Now, instead of waiting for 5s, we want to explore if we can invoke the 2nd click as soon as the page is loaded. We tried using "onPageLoad" but we realised that this does not work for modern single page (responsive) applications. i.e. we don't know when the js has finished executing.

window.addEventListener('load', (event) => {

  setTimeout(function (){
     UDAPluginSDK.modifybodyhtml();
  },2000);

});

Hi, We are working on an Open Source Chrome extension: [https://github.com/kcramakrishna/Digital_Assistant_Client Digital Assistant Client] We have a script which invokes clicks on web pages. We record a sequence of clicks as a 'flow' or 'task'. i.e. After the first click is invoked, we wait 5 s for the page to load and then invoke the 2nd click. setTimeout(function(){UDAPluginSDK.showhtml();}, 5000); Now, instead of waiting for 5s, we want to explore if we can invoke the 2nd click as soon as the page is loaded. We tried using "onPageLoad" but we realised that this does not work for modern single page (responsive) applications. i.e. we don't know when the js has finished executing. window.addEventListener('load', (event) => { setTimeout(function (){ UDAPluginSDK.modifybodyhtml(); },2000); });

All Replies (1)

more options

Hi, this is Mozilla support. We can help you with a Firefox extension.

With this question please go to Chrome support.

Modified by TyDraniu