JSFiddle - React, Tailwind, and code Playground
by Vinay Pratap Singh Bhadauria
HTML
<div style="height:1000px"></div>
JavaScript
$(window).scroll(function () {
if ($(window).scrollTop() + $(window).height() == $(document).height()) {
var img_no = $(".imgcontain").length;
alert("There are " + img_no + " images on the page.");
}
});