title: Detect if any JavaScript function is running
body: <p>I know it may sound very strange, but I need to know if there is any active/running javascript in the page.</p>
  
  <p>I am in situation in which I have to run my javascript/jquery code after everything on the page is rendered and all other scripts have finished.</p>
  
  <p>Is it possible to detect this?</p>
  
  <p>EDIT:</p>
  
  <p>Thank you all for the answers. Unfortunately, I was not able to find a solution, because I have no full control of what is going on the page. </p>
  
  <p>Even, I was able to put my javascript in the end of the page, I think it will not be solution again. The reason is that when the page is rendering a function is triggered, it calls other functions and they calls other and so on. As a result, some of the data is incorrect and that's why i need to run my code to correct it.</p>
  
  <p>I use setTimeout with 2 seconds to ensure that my code will be executed last, but this is ugly... </p>
  
  <p>So, thank you all, but this is more problem with the system, not the js.</p>