title: Lightweight alternative to base64
body: <p>I'm making a html mosaic creating app, and I use base64 to embed the pictures, and since everything is coded in JS, exporting a mosaic full of pics creates memory leaks in the browser.</p>
  
  <p>How the app works :</p>
  
  <ul>
  <li>It uses jquery to append content into the mosaic</li>
  <li>Uses base64 to embed pictures</li>
  <li>Exporting exports a single html file with the mosaic in it (and base64 pic)</li>
  </ul>
  
  <p>I was wondering if there was a good lightweight alternative to base64 to embed pictures in on html file. Note that I would like to avoid providing a zip file with the html mosaic + the pictures unless it's the only solution to avoid memory leaks. I would also avoid uploading pictures to a server since it should be offline friendly.</p>
  
  <p>Update : Removed app demo (down)</p>