3 ms·
The author states that in an ideal "web of documents", we would have (1) only GET requests, (2) no (java)scripts, and (3) no cookies. While I agree with (1) and
by joppy 7y ago
The author states that in an ideal "web of documents", we would have (1) only GET requests, (2) no (java)scripts, and (3) no cookies. While I agree with (1) and (3), I disagree completely with (2).
Having Javascript enables amazing things like interactive documents. For example I would consider [1] a document, despite the fact that there is Javascript running. What a wonderful way to interact with and get a better understanding of a Voronoi diagram! Or how about the wonderful interactive demonstrations of graph searches at [2]? To me, things like this are part of what makes the web platform fantastic.
Earlier in the article, the author writes:
"A document is stateless. It exists in and of itself; it is its own microcosm. It may be experienced interactively, but only insofar as it enables the experiencer to focus their attention on the part of their own choosing; the potential state of that interaction is external to the document, not part of itself."
I think that the two interactive javascript-powered articles I linked comply with this. Ruling out scripts entirely is too heavy-handed - perhaps a nice middle ground can be found somewhere.
[1]: https://strongriley.github.io/d3/ex/voronoi.html https://strongriley.github.io/d3/ex/voronoi.html
[2]: https://www.redblobgames.com/pathfinding/a-star/introduction.html https://www.redblobgames.com/pathfinding/a-star/introduction...