‘); storiesList.insertAdjacentHTML(‘beforeend’, ‘ End Page ‘ + pageNumber + ‘ ‘); window.addEventListener(“scroll”, onWindowScroll); function onWindowScroll(e) { var st = window.pageYOffset || document.documentElement.scrollTop; if (!infiniteScrollRequestInProgress) { if (st > lastScrollTop) {…