3 ms·
> Still, bundling is kind of essential Heh. I agree, actually. And even though I wrote all that, it was partly to convince myself to stop thinking about it. It
by russellbeattie 4y ago
> Still, bundling is kind of essential
Heh. I agree, actually. And even though I wrote all that, it was partly to convince myself to stop thinking about it. It didn't work.
Here's a prototype I finished last night for a secure, self-contained HTML doc format. It has a script at the top that monitors all the media tag additions like images, video and CSS, and then swaps them for base64 encoded data URLs contained at the bottom of the document. I say "secure" because the doc has a super-restrictive CSP at the top of the page which basically disables asset loading.
It's sort of a cross between MIME-HTML and SingleFile, but the end result is a page that's identical the original HTML, except for a bit of JS which I envision the browsers would take care of for .htmd files, and a chunk of JSON at the bottom for storage.
https://www.hypertext.plus/demo/htmldoc-test1.html https://www.hypertext.plus/demo/htmldoc-test1.html
(BTW, Thanks for reading all my rantings! I appreciate knowing it's not going into the void!)
- BlueTemplar 4y agoMarkdown implementations : "almost, but not quite, entirely unlike a document format" ;)