title: Jquery load external file that relies on jquery plugin
body: <p>I have a set of jqueryui tabs that, when clicked, load in their content dynamically.  It works great, except that one of the pages uses a jquery plugin itself.  This results in two issues:</p>
  
  <ol>
  <li><p>The main page that holds the tabs throws an error when loaded because there is js that refers to elements that haven't loaded yet (those elements are in the external file that contains the code that relies on the plugin).</p></li>
  <li><p>If I embed the js that triggers the plugin functionality into the external file, it is outside of the document.ready function from the main page and therefore isn't usable.</p></li>
  </ol>
  
  <p>Basically I am looking for a technique that allows me to ajax load an external html file into the DOM while not crapping out the main page itself because JS that is already there is expecting HTML which is not yet there.</p>
  
  <p>Thanks.</p>