 <p>You can store anything you like in localStorage provided the item stored is turned into a string, no problem in your case, and the total storage doesn't exceed 5Mb per site.</p> <p>You approach could something like this.</p> <ol> <li>When the page loads (use jQuery) check if the base HTML template is there</li> <li>If not use jQuery to load it and store it in localStorage</li> <li>use a jQuery selector to select the appropriate element in the current page. This could be the element. And use $(...).html(stored html template); to display the base html.</li> <li>If you need to insert dynamic values use something like John Resig <a href="http://ejohn.org/blog/javascript-micro-templating/" rel="nofollow">MicroTemplating</a> to insert variables.</li> </ol>