= document.documentElement.scrollHeight - 100;
if (isScrolled) {
isLoading = true;
clearTimeout(timeout); // Clear any previous timeout
timeout = setTimeout(() => {
window.Livewire.find('B14kJWO2el87p8tsoKQz').loadMore(); // Trigger loadMore after a delay
isLoading = false; // Reset the loading flag after loading is done
}, 500); // Add a delay (500ms) to throttle the scroll event
}
}
">