Hide page status loader until its finished

This commit is contained in:
Daniel Supernault 2018-06-05 20:02:09 -06:00
parent 8194432073
commit 40b1f61611
5 changed files with 2 additions and 4 deletions

BIN
public/js/timeline.js vendored

Binary file not shown.

Binary file not shown.

View file

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

View file

@ -39,7 +39,7 @@
<div class="page-load-status">
<div class="infinite-scroll-request">
<div class="fixed-top loading-page"></div>
<div class="d-none fixed-top loading-page"></div>
</div>
<div class="infinite-scroll-last">
<h3>No more content</h3>

View file

@ -30,7 +30,7 @@
<div class="page-load-status">
<div class="infinite-scroll-request">
<div class="fixed-top loading-page"></div>
<div class="d-none fixed-top loading-page"></div>
</div>
<div class="infinite-scroll-last">
<h3>No more content</h3>