- 2.0.1: Fixes the page links staying visible under the posts while infinite scroll is working. Themes that print the Query Pagination block in core's classic markup (nav.navigation.pagination, as LH 2015 does) are now matched as well as the block's own .wp-block-query-pagination, so those links are hidden while loading works and shown again if a page fails. The list's data-lh-infinite-scroll-next attribute now follows the next page as pages load, and is removed after the last one.
- 2.0.0: Rebuilt for block themes. LH Infinite Scroll now works with any Query Loop block set to inherit the main query (posts page, archives, search) instead of the classic #main markup, and needs WordPress 6.5 or later. The next page loads shortly before the visitor reaches the end of the list (IntersectionObserver, 800px ahead by default, filterable with lh_infinite_scroll_return_load_distance). Its posts are appended as DOM nodes rather than by rewriting the page HTML, so nothing already on the page is reloaded or loses its state, and posts repeated because the pages shifted are skipped. The address bar and tab title follow the page being read, using replaceState so the back button is not filled with page steps. Pagination after the list is hidden while loading works and shown again if a page fails to load; the last page is now shown, and a failed fetch no longer retries on every scroll. New pages are announced to screen readers, and an lh-infinite-scroll:loaded event fires on the list for other scripts. Removed: loading previous pages above the first, the separate script served only to user 1, the unused scrollend polyfill, the prefetch resource hints (LH Jumpstart covers prefetching), IE detection and the console logging. The plugin no longer uses the bundled LH_Register_file_class; the script is registered with core wp_register_script with the defer strategy. Brought up to the LH plugin structure: identity methods, the lh_infinite_scroll_init_plugin filter, a full header with Text Domain, License and requirements, and a languages directory.
- 1.00: Initial release.