3 ms·
Except those web pages are broken into pages at arbitrary locations, rather than by chapter or topic like most web sites are, and each page is only one screen t
by frosted-flakes 5y ago
Except those web pages are broken into pages at arbitrary locations, rather than by chapter or topic like most web sites are, and each page is only one screen tall. A better analogy would be adding a history entry every time I press PageUp or PageDown: it would clutter up the history so much as to make it useless.
Another way to think of it is that a web page is one document, and so is a book. The history stack is a list of visited documents. If the book should be treated as a collection of documents, then it should be structured that way.
I don't think there's a good solution to online books that are presented like that, but I like how the Kindle app works: following a link or jumping ahead in the book adds a history entry (with the in-app back button), but just turning the page doesn't.
- marvindanig 5y ago> Except those web pages are broken into pages at arbitrary locations, rather than by chapter or topic like most web sites Websites are not books. No one will read Harry Potter and Prisoner of Azkaban like a website or a news article. Books are also not files, going strictly by first principles. > Another way to think of it is that a web page is one document, and so is a book. One page is document. Multiple pages clipped together is a document. Website is a document. Video is document. Audio is document. Book is document. Manuscript is document. You are a living breathing document of your own life! Everything is a document! But history api on the web exposes useful methods and properties that let you navigate back and forth through the user's session history, and manipulate the contents of the history stack. It does not talk about the unit of transition within a session being a document. It stacks only webpages on the history api in the positive direction of time just like reading through a book. And that's what is implemented.