pixelfed/resources/assets/js/timeline.js
2018-06-03 21:04:01 -06:00

12 lines
346 B
JavaScript
Vendored

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