
外掛標籤
開發者團隊
② 後台搜尋「Weblazer Infinite Scroll for Block Themes」→ 直接安裝(推薦)
原文外掛簡介
Weblazer Infinite Scroll provides a way to add infinite scrolling to your WordPress archives. Built with performance in mind, it is written in Vanilla JS and relies on the native Intersection Observer API for efficient scroll detection.
This plugin is specifically optimized for modern WordPress block themes and the Query Loop block, ensuring seamless integration with the Site Editor. It also features URL synchronization, which updates the browser address bar as users scroll through different pages.
For Developers
You can hook into the event when new posts are loaded to re-run your custom scripts:
document.addEventListener('weblazer:infinite-scroll:posts-loaded', (e) => {
console.log('Page loaded:', e.detail.page);
console.log('URL:', e.detail.url);
});
