title: Pause loading script and resume after load element of DOM
body: <p>I need the js script to stop and wait until a certain element appears on the page.
  Can this be done with promises?
  The fact is that the portal on which the script is used dynamically loads pages without going to the URL, and the necessary part of the script is to be executed on a specific page</p>