zlacker

[parent] [thread] 7 comments
1. jml7c5+(OP)[view] [source] 2024-08-24 17:27:07
I really wish that browsers had developed first-class support for offline web page bundles. There's no way to share a page that is guaranteed to be self-contained and not hit the network, especially if you want to use javascript. It's particularly frustrating since browsers supported offline mode as far back as the 90s; it just needed to be combined with support for loading from zipped folders.

That simple change would've largely solved the academic paper problem decades ago. It's bizarre that it still isn't a feature.

replies(3): >>simonw+f >>abelch+Cm >>smsm42+fXi
2. simonw+f[view] [source] 2024-08-24 17:29:49
>>jml7c5+(OP)
One option her is to inline all assets - images etc - as bas64 URIs. The HTML page ends up huge but it will at least be self-contained.
replies(1): >>jml7c5+P1
◧◩
3. jml7c5+P1[view] [source] [discussion] 2024-08-24 17:42:35
>>simonw+f
Yes, but it's not guaranteed to be self-contained. I wouldn't want to open a random HTML file knowing that it could phone home, or that the content might break one day without me realizing. There's a practical and psychological aspect to sharing `steves_paper_2014.html` versus `steves_paper_2014.offlinesitebundle`. The latter feels safe and immutable.
replies(1): >>irq-1+Kh
◧◩◪
4. irq-1+Kh[view] [source] [discussion] 2024-08-24 19:40:34
>>jml7c5+P1
What you want is an HTML tag or response header that restricts network access, which the browser can then enforce. Offline or a list of allowed domains, this would be great for security in general. Not so great for advertisers though.
replies(1): >>mewpme+TBc
5. abelch+Cm[view] [source] 2024-08-24 20:19:01
>>jml7c5+(OP)
this is what you are looking for i believe (web archive format) https://en.wikipedia.org/wiki/WARC_(file_format)?oldformat=t...
replies(1): >>jml7c5+6t
◧◩
6. jml7c5+6t[view] [source] [discussion] 2024-08-24 21:17:12
>>abelch+Cm
Browsers don't have native support for opening WARC. It doesn't solve the safety problem either: you can still construct a WARC that phones home, AFAIK.

It's a great format for the problem it solves, but if browsers supported offline-only files the container format wouldn't (and shouldn't) need to be that complicated.

◧◩◪◨
7. mewpme+TBc[view] [source] [discussion] 2024-08-29 07:30:47
>>irq-1+Kh
Then you have to verify that the tag is there, right? But if it has another extension like .offlinebundle you can know thay browsers will not make any extra requests.
8. smsm42+fXi[view] [source] 2024-08-31 22:52:34
>>jml7c5+(OP)
Mail clients kinda do that (or at least they can, if asked to). Also, why would academic papers need JS anyway? CSS and images, I can get, but beyond that there's no need for anything fancier.
[go to top]