mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-30 17:03:16 +00:00
15 lines
448 B
JavaScript
Vendored
15 lines
448 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 ) {
|
|
$('.page-load-status').show();
|
|
pixelfed.hydrateLikes();
|
|
});
|
|
});
|