pixelfed/resources/assets/js/timeline.js
2018-06-05 08:38:48 +02:00

15 lines
413 B
JavaScript
Vendored

$(document).ready(function() {
$('.pagination').hide();
$('.page-load-status').show();
let elem = document.querySelector('.timeline-feed');
let infScroll = new InfiniteScroll( elem, {
path: '.pagination__next',
append: '.timeline-feed',
status: '.page-load-status',
history: false,
});
infScroll.on( 'append', function( response, path, items ) {
pixelfed.hydrateLikes();
});
});