3 ms·
You just append new <figure> elements to the <main> in the example and it will automatically put them in the appropriate column.
by jonah 10mo ago
You just append new <figure> elements to the <main> in the example and it will automatically put them in the appropriate column.
- nitwit005 10mo agoYour answer doesn't appear to relate to what I asked. You need to know when to query the backend for more data if it's an infinite scrolling setup.
- jonah 10mo agoAahh. The way you phrased your question was pretty ambiguous. The other posters have good answers. One thing to consider for a smooth interaction would be to eagerly load the next x elements before they scroll into view.
- pcl 10mo agoYeah I’d assume you’d eagerly load enough to make sure everything gets at least partially into the viewport, and maybe a fee more to optimize for network latency. And then perhaps track elements whose trailing ends are not in the viewport, and load more once those become fully visible?