4

I'm trying to find a cross-browser capability for saving and loading entire webpages as single files. MHTML (.mht) is an example of such a file type, but it doesn't work cross-browser. Any suggestions?

Nate Glenn
  • 5,926
  • 6
  • 38
  • 89
  • 1
    I am assuming you don't want pdf? – Ahmed Aeon Axan Feb 27 '13 at 18:48
  • just curious can you explain a bit more about why you want to do this, especially the saving/loading rationale? There are **massive** caching benefits to *not* storing all your static content in the same file as your dynamic content... **massive** – scunliffe Feb 27 '13 at 18:49
  • @AhmedAeonAxan nope, don't want PDF – Nate Glenn Feb 27 '13 at 18:50
  • @scunliffe I'm making something that runs in a browser but isn't necessarily served by a server. Either I make users download an archive, unzip it and click on the main html file inside, or I use a handy format that can be clicked and opened in a browser. – Nate Glenn Feb 27 '13 at 18:52

1 Answers1

1

grunt-inline "Brings externally referenced resources, such as js, css and images, into a single file." and works like a charm.

poipoi
  • 11
  • 1
  • Thanks, but not quite what I need. It needs to allow for all of the web pages (HTML) in one file. I assume that if this is standardized then it will come in the form of an archive, like ePub or mhtml. – Nate Glenn May 27 '14 at 10:31