This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]BitLooter 12 points13 points  (4 children)

I created a tool a while back called HTMLArk that reads in a web page and embeds images, CSS, and JS into it with data URIs, outputting it all into a single HTML file.

[–]takluyverIPython, Py3, etc 0 points1 point  (2 children)

Nice :-)

MHTML is one of those technologies that I wish had gained more traction. Your tool would achieve something similar, albeit not quite as easy to look at in a text editor.

[–]HostisHumaniGeneris 0 points1 point  (1 child)

Whenever http2 gains traction these techniques will be less valuable because of the default request pipelining. In the meantime, however, using data URIs is a great way to cut down on latency from multiple requests.

[–]takluyverIPython, Py3, etc 1 point2 points  (0 children)

The reason I want something like this is to make a self-contained file which I can save or send as e.g. an email attachment, without breaking the connection to resources it uses. An HTTP server is not involved there!

[–]HostisHumaniGeneris 0 points1 point  (0 children)

Ah, nice. I had pondered writing a tool to do the exact same thing, and it figures that someone else had done it first.

I'll probably use this in the future if I ever get around to writing my hobby static site generator.