It depends on the HTML elements, but I would say, as a rule, do not load upfront.
When I say that it depends on the elements, I mean, for example, take a look at facebook. They upload maybe 10 or 20 elements to the feed, and then add more as they scroll through, because each element is so rich in content (photos, videos, etc.).
However, on the other hand, think about how much information on each line, if it says less than 500 bytes, 500 x 10000 = 5 MB, which is not a terrible download for a web request, and if you can cache intelligently, maybe it will be much less.
On the bottom line, don't assume that the number of HTML elements matters, think about the amount of data that it makes up. My advice is to cross this bridge when you get there. Control the time of the request, if they are too long, come up with an AJAX page loader, which should not be too complicated.
OneChillDude
source share