title: jQuery - fire event after element is loaded
body: <p>I have to edit an existing web application. My problem is that I don't have the permission to edit the scripts from the application itself. I just got an custom.js.  </p>
  
  <p>A little bit background information about the webapp. It generates some HTML elements via ajax i guess (minified JS). My task is to hide one of those elements. My problem is here that when i try to hide it from my custom.js, it isn't generated yet. So my question is, is the a nice way, to wait until the element is loaded?</p>
  
  <p>What I tried already:  </p>
  
  <pre><code>$(document).on("load", ".testLoad", function() {
      console.log('Finally loaded');
  });
  </code></pre>
  
  <p>Unfortunately this isn't working for me.</p>
  
  <pre><code>setTimeout(function(){
          $('.testLoad').hide();
      }, 5000);
  </code></pre>
  
  <p>This is working, but not the cleanest solution.</p>