I am building a website that will allow users to upload images, gifs, and videos. On the home page I want to have a list of files people have uploaded, preferably based on popularity but I'm not that far along yet. When the page first loads, I want to have a certain number of files being shown, based on the users screen resolution. Something where to the user can scroll down a little before more files are loaded. My code right now is just like this:
<article class="item thumb" data-width="282">
<h2><?php echo $file_title;?></h2>
<a href="<?php echo $randomImage ?>"><img src="<?php echo $randomImage ?>" alt=""></a>
</article>
<article class="item thumb" data-width="384">
<h2><?php echo $file_title;?></h2>
<a href="<?php echo $randomImage ?>"><img src="<?php echo $randomImage ?>" alt=""></a>
</article>
It does that for a total of 8 times. How can I make the page request more tags as the user scrolls over...Just like Facebook loads more content as you scroll down? Sorry if I'm not explaining this well.