Usability hint: the scrollbar on the comment page should display the actual position in the text
You have loaded the hub recording page with comments. The browser rendered the page and determined its height, and then calculated the height of the slider on the scroll bar and displayed it. The problem is that if the entry occupies more than one screen and there are many comments on the page, you will be misled about the amount of content: the scroll bar does not reflect the actual volume of the hub recording. You see how the scrollbar displays a fraction of the entire comment page, rather than a fraction of the target content. This is not good.
JavaScript solution:collapse the block with comments during rendering and expand if the comments block is close enough to the bottom of the page. In this case, immediately after opening the scroll bar will display the actual volume of the hub recording, and when we scroll to the comments page, it will rebuild the image and show the position on the expanded one.
If the transition to the page is carried out by anchor to some comment (# commnet-34295878634), the code should catch this and not collapse the comment block.
The problem is irrelevant for solutions where comments are displayed on another page.
The solution is bad if the user expects the scrollbar to show the page size with comments. True, I can’t understand who needs it. In the case of Habr, the number of comments is easily estimated by meta-information under the announcement of the hub recording in the tape.
There must be some more problems until I come up with.
JavaScript solution:collapse the block with comments during rendering and expand if the comments block is close enough to the bottom of the page. In this case, immediately after opening the scroll bar will display the actual volume of the hub recording, and when we scroll to the comments page, it will rebuild the image and show the position on the expanded one.
If the transition to the page is carried out by anchor to some comment (# commnet-34295878634), the code should catch this and not collapse the comment block.
The problem is irrelevant for solutions where comments are displayed on another page.
The solution is bad if the user expects the scrollbar to show the page size with comments. True, I can’t understand who needs it. In the case of Habr, the number of comments is easily estimated by meta-information under the announcement of the hub recording in the tape.
There must be some more problems until I come up with.