title: How to add jQuery code after js snippet is fully loaded?
body: <p>I'm having trouble adding click function to the button which is loaded with JS snippet, because when I try doing the function like this on document.ready</p>
  <pre><code>jQuery(document).ready(function( $ ){   
      $(&quot;.esis__heading&quot;).on('click', function(event){
        console.log('123123');
  })});
  </code></pre>
  <p>it fails because the element is not loaded and visible yet.</p>
  <p>I was thinking maybe timeout is a solution but I started to think it's not a perfect solution.
  If someone has any advice on how to deal with this it would help a lot.
  This is the link to a page which has a snippet that loads after some time <a href="https://samsung.plutonium.rs/samsung/" rel="nofollow noreferrer">https://samsung.plutonium.rs/samsung/</a></p>
  <p>Thanks in advance.</p>