Re:Retain Scroll Position in Infinite Scroll
by reverius42 on Friday July 11, 2014 @02:10AM
(#8019059)
I have tried a similar technique and discovered browser limitations in the millions or tens-of-millions pixel height range (depending on the browser), for a scrollable div. Chrome, Safari, and Firefox all refuse to add scrollable height beyond a certain limit, even when the content is taller. Have you run into the same limitations?
[ Parent
| on HN ]
The site where I had all the photos needs them to be reimported at the moment, so I can't check, but I estimate it was at least 8 million pixels tall. Instead of putting the photos IN the div, I just used the div to make the page tall. It was 1px wide and 8,000,000 pixels tall. If there is some limitation, you could have multiple divs of a million pixels each, or you could set the height of the body tag.