title: Cache entire jquery.min.js file in HTML5 localstorage
body: <p>I have been trying to use localstorage to store Jquery-min but I am unable to do it. I have tried some of the Jquery plugins and they do not work either. </p>
  
  <p>It just seems like a great idea to load Jquery once for my web application and never worry about it again. The application that I am creating has people that visit everyday. I do not think it is needed for them to download the JS files or CSS files more than once. </p>
  
  <p>I am able to store all CSS in localstorage, but not Jquery or Jquery UI. </p>
  
  <p>Anyway, I know people are going to try and convence me to use cache manifest....etc. But I am looking for a way to store the Jquery library in localstorage. (That is the goal). </p>
  
  <p>Any ideas?</p>
  
  <p><strong>EDIT:</strong>
  Everyone was asking for a code example. So here it is....it is pretty straight forward, i am only using a small--small amount of the Jquery minified version in order to keep the post small:</p>
  
  <pre><code>localStorage.setItem("name", "(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cv(a){if(!cj[a]){var b=f('&lt;'+a+'&gt;').appendTo('body'),d=b.css('display');b.remove();if(d==='none'||d===''){ck||(ck=c.createElement('iframe'),ck.frameBorder=ck.width=ck.height=0),c.body.appendChild(ck);if(!cl||!ck.createElement)cl=(ck.contentWindow||ck.contentDocument).document,cl.write('&lt;!doctype&gt;&lt;html&gt;&lt;body&gt;&lt;/body&gt;"); 
  </code></pre>
  
  <p><strong>What is saved when viewing it:</strong></p>
  
  <pre><code>(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cv(a){if(!cj[a]){var b=f('&lt;'+a+'&gt;').appendTo('body'),d=b.css('display');b.remove();if(d==='none'||d===''){ck||(ck=c.createElement('iframe'),ck.frameBorder=ck.width=ck.height=0),c.body.appendChild(ck);if(!cl||!ck.createElement)cl=(ck.contentWindow||ck.contentDocument).document,cl.write(' 
  </code></pre>
  
  <p>It does not save everything. Can I use a parsefloat() or something? How would I do that if it would work?</p>
  
  <p>The reason I like local storage is that I can control it easy. And I don't have to worry about users emptying their cache. If I need to update localstorage I can do it with one line of code. It almost acts as an update feature for my web application. Please let me know if I am missing something or if there is an easier way to do this. Sample code coming soon</p>