The browser isn't optimized for text files though, but for documents and applications. I've noticed some flickering while scrolling longer pages before, and from that I expect that there's some caching of the rendered content of the page.
The text file also gets transformed into a html document with DOM (inspect one in Firefox to see), which likely has its own caching tricks for performance.
The text file also gets transformed into a html document with DOM (inspect one in Firefox to see), which likely has its own caching tricks for performance.