diff --git a/resources/assets/js/timeline.js b/resources/assets/js/timeline.js index 576b3e71e..72c59406c 100644 --- a/resources/assets/js/timeline.js +++ b/resources/assets/js/timeline.js @@ -1,12 +1,14 @@ $(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(); }); -}); \ No newline at end of file +}); diff --git a/resources/assets/sass/custom.scss b/resources/assets/sass/custom.scss index 92f0ca5ad..1db518df5 100644 --- a/resources/assets/sass/custom.scss +++ b/resources/assets/sass/custom.scss @@ -202,3 +202,15 @@ body, button, input, textarea { z-index:1020 } } + +@keyframes loading-bar { + from { background-position: 0 0; } + to { background-position: 100vw 0; } +} + +.loading-page { + background-image: linear-gradient(to right, #6736dd, #10c5f8, #10c5f8, #6736dd); + width: 100vw; + height: .25rem; + animation: loading-bar 3s linear infinite; +} diff --git a/resources/views/timeline/personal.blade.php b/resources/views/timeline/personal.blade.php index ce9415638..3c53eb838 100644 --- a/resources/views/timeline/personal.blade.php +++ b/resources/views/timeline/personal.blade.php @@ -36,6 +36,27 @@ @endif + +
+ Maybe you could try + discovering + more people you can follow. +
++ Try reloading the page +
++ Maybe you could try + discovering + more people you can follow. +
++ Try reloading the page +
+