Remix.run Logo
▲ perching_aix 3 hours ago

it informs it. not sure it's a settled subject in my head per se though.

normally, when i think of a document, i think of something that is to be printed / printable properly. this puts javascript out of the picture for the most part, though not necessarily entirely. some pages sadly don't even load their content without javascript these days, like SPAs, or require custom streaming.

i needed to print directions from google maps one time for example, and even the inbuilt solution is basically just a fancy print screen of a page that was mostly rendered with javascript (or similar, i don't know their tech stack, not necessarily relevant). but then this brings about the idea that the page can be interactive, while exposing an end result that is printable.

or consider css. modern css has animations. one can even implement a navbar without any js, just pure css (and i very much appreciate when people do!). i'd permit media queries, but i'm not sure about fancy animated effects.

another thing i might want to bring up is grafana. it's just interactive charts. if i disable the autorefresh, it's not live either. requires javascript, but i believe if someone wanted to chart something some other way that is not grafana, it's possible to do some visualizations with just css alone as well in a way that is manipulable. end result is again static. i could conceivably print it.

i'm not even sure pure html, with no embedded js and css, escapes the non-document fate guaranteed. video tags include videos after all.

for me the bigger question is usually how much arbitrary execution a website requires instead. if it's all fixed function stuff, like html or css, i'd grade that higher than i'd websites requiring arbitrary code execution. but then technically modern fonts are also virtual machine bytecode that is executed during font rendering, so even just putting text on the screen can require arbitrary code execution. and even if we don't go that far, you do need to hold onto some state, since html is not a regular language for example (cue can't parse html with regex meme). and this isn't even getting into all the weird and whacky multimedia formats.

▲ZenoArrow 33 minutes ago | parent [-]

I think you're getting hung up on the technology and not looking at the substance of what is being delivered.

Let's use your example of a HTML page that contains a video tag. Let's say this is the only visible content on the page, just a video and nothing else. Is this a document? I would say not. Why? The primary content on the page is based on an interactive object, and that interaction goes beyond navigation to other pages.

To use an analogy, I'm guessing you understand what a TV station is and what a radio station is, but to summarise, radio is focused on transmission of audio, and TV transmits both video and audio. You use a TV to watch TV stations and a radio to listen to radio stations. Now consider, in some countries, radio stations are also broadcast as TV channels. When you listen to a radio station in this way, does your TV become a radio? Debatable, but what is not debatable is that the audio is the primary focus regardless of whether you're listening via a TV or a radio.

Similarly, the web platform is a bit like a TV, in that it supports different forms of content (apps, documents, and those that blur the lines between them). The key point is that experience is different when you're using the web to consume documents versus when you're using the web for apps. It doesn't matter whether you build a text-heavy webpage using no JS or lots of it, but what does matter is how you interact with the content. If you can imagine a getting a similar experience out of a book or magazine, then that's a document.

As hinted at before, there are sites that blur the differences between documents and apps, but even with acknowledging that it's possible to blend documents and apps, it's also possible to acknowledge that documents and apps can be distinct content consumption experiences.