Terence Eden on Nostr: I have a *very* stupid #HTML question Is it possible to *compress* the contents of a ...
I have a *very* stupid #HTML question
Is it possible to *compress* the contents of a Data URl?
For example, I can do:
`data:text/css;base64,…`
But the B64 version is larger than the plaintext.
I want to do something like
`data:text/css&gzip;base64,…`
Obviously, this is redundant with MIME types of compressed images.
And, also obviously, the Base64 is compressed with the page.
So perhaps this is a redundant idea?
Published at
2024-08-19 17:46:57Event JSON
{
"id": "3e94fcbda0437154baa3c544a46db1aa1e7a1ee3c5d675d38b9fca374fb35fe9",
"pubkey": "fddf487eea9db57a6e320f80e5cb63de50bedf539695a41c0d447be6c23643e1",
"created_at": 1724089617,
"kind": 1,
"tags": [
[
"t",
"html"
],
[
"proxy",
"https://mastodon.social/users/Edent/statuses/112989937176931388",
"activitypub"
]
],
"content": "I have a *very* stupid #HTML question\n\nIs it possible to *compress* the contents of a Data URl?\n\nFor example, I can do:\n\n`data:text/css;base64,…`\n\nBut the B64 version is larger than the plaintext.\n\nI want to do something like\n\n`data:text/css\u0026gzip;base64,…`\n\nObviously, this is redundant with MIME types of compressed images.\nAnd, also obviously, the Base64 is compressed with the page.\nSo perhaps this is a redundant idea?",
"sig": "a877b075af86cc5bc4be1cf229b313f0c4a4e8046d23424297899c7237ab4120191fa84f28734407f2c2eee66617fec78191a8d3aefaeb24d51d812c93d6abc8"
}