Hello to all! Tell me, please, this question: the task is to display a huge text file on a web page. There is an idea to do this Javascript with Ajax. Accordingly, there is a need for a certain script component that would display only the current fragment of the file. But when the user scrolls the text down or up, then the Ajax'om component would download another file fragment from the server (on the Java + JSP + Spring server). I saw scripts like Facebook - they deploy content when the user scrolls down. And I would like it to work both up and down, and so that the text does not accumulate. In Facebook, when you scroll down, the top part of the content does not disappear, but I need it to be cleared and reloaded, if the user scrolls up. It is also desirable that the component allows you to generally move to an arbitrary place in a text file.
Are there such components in nature?