title: A good method for client-side iframe caching
body: <p>I'm trying to cache some documents client-side in order to switch between them faster.</p>
  
  <p>The documents have been loaded in an iframe, so it's a question on how to cache it locally within the browser.</p>
  
  <p>My method was to have a variable, item, and then do</p>
  
  <pre><code>if (item.cache) {
      $('.holder', someElem).html(item.cache);
      return;
  }
  
  item.cache = $('&lt;iframe....');
  $('.holder', someElem).html(item.cache);
  </code></pre>
  
  <p>However, this method keeps reloading the iframe src, when injected on to the holder.</p>
  
  <p>Any good methods for client-side iframe caching?</p>