title: Injecting local HTML code into iPhone Phonegap webapp
body: <p>I've got a bit of HTML code that I'd like inject into a main HTML-document only when needed. (Holding off this code at first will hopefully make the app load up faster) Since, it's phonegap-wrapped I guess the files run locally on the device and the solution must cope with that. </p>
  
  <p>What's the best way of doing this? Will an XMLHttpRequest work locally in an iPhone Phonegap app? Which method is the fastest?</p>
  
  <p>Optimally, I would like the method to have an event or a way to determine when the code has completely finished loading..</p>