Is there a limit to the length of the scroll of a web page?

I have a client that creates a business application that will only be used with IE8.

One of the requirements is to display all the data on one page. I expect this data table to be somewhere between 3K - 10K pixels in length. In the worst case scenario, more than 25 thousand pixels.

What are the technical considerations for long page maintenance? Is there a limit on page length and IE displays an error?

The application is based on Java / Struts.

+4
source share
4 answers

Try using this javascript:

<html> <head> <script> window.onload=function(){ var i=10000; var buff=''; while(--i){ buff+='<br />'; } document.body.innerHTML=buff; } </script> </head> </html> 
+4
source

Theoretical answer: your machine resources are finite - yes, there is a limit.

The practical answer: take a look at other very long pages, for example. http://svnbook.red-bean.com/en/1.5/svn-book.html

+2
source

Try:

 <% for (int i = 0; i < 25000; i ++) { %>test<br /><% } %> 
+1
source

In my testing, IE10 stops just below 1,534,000 pixels. The limit includes the height of the viewport in the scrollable area, so the actual scrollTop is the limit minus the height of the element.

If you set the CSS style -ms-scroll-limit-y-max, it will clamp the maximum allowed value. But in my case, I accidentally stumbled upon this number.

0
source

Source: https://habr.com/ru/post/1311904/


All Articles