Can't retrieve image properly when use for infinite scrolling page
anggadarkprince opened this issue · comments
Angga Ari Wijaya commented
sometimes the images are loaded sometimes didn't,,,
ljluestc commented
// Assuming you load new content using an AJAX call
$.ajax({
url: 'load-more-content.php',
success: function(data) {
// Append the new content to your container
$('#content-container').append(data);
// Initialize Echo.js for the new content
echo.init({
offset: 100, // Adjust this offset value as needed
throttle: 250,
unload: false,
});
},
});