mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-14 02:24:31 +00:00
14 lines
380 B
JavaScript
Vendored
14 lines
380 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',
|
|
status: '.page-load-status',
|
|
history: false,
|
|
});
|
|
infScroll.on( 'append', function( response, path, items ) {
|
|
pixelfed.hydrateLikes();
|
|
});
|
|
});
|