Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Pagination or infinite scroll not loading: how to find and fix it

CNV-328Low impactCould addBy FunnelGuardPublished Updated
On this page

What this issue is

Long lists of products, posts or search results are split into pages. Visitors move through them in one of three ways: numbered links (pagination), a Load more button, or infinite scroll, where new items appear as you reach the bottom.

This issue means that mechanism stops working. The button does nothing, the spinner never ends, the next-page link returns an error, or the list simply stops after the first batch. The page looks normal, so nobody on your team may notice.

Common causes: a JavaScript error from another script, an AJAX request (a background request the page makes for more items) that returns an error, a theme or app update, a caching or security rule blocking the request, a page parameter such as ?page=2 that 404s, and a footer or overlay that pushes the scroll trigger out of reach.

Why it costs you leads or sales

Shoppers who do not find what they want in the first batch cannot go further. Products beyond page one become invisible, even if they are your best margin or newest items. People who want to browse deeply, such as those comparing many options, are the ones most likely to leave.

The impact is usually moderate rather than severe because many visitors use search or filters, but it hits catalogues with many products hardest. It also affects search engines: if page 2 and beyond cannot be loaded as real URLs, crawlers may never discover those products.

Where the browse path breaks
  1. Category pageFirst 24 products load
  2. Scroll or click NextRequest for page 2 fails
  3. More productsNever shown
  4. Product page and cartItems beyond page 1 never reached

The visitor never gets past the first batch of products.

Products a visitor can reachExample numbers
Products a visitor can reach (example)Working pagination: 120 products; Broken pagination: 24 products0469212024Working paginationBroken paginationproducts

Example: a 120-product category with 24 products per page. When page 2 onward fails, only 20% of the catalogue can be browsed.

How to check if your site has it

Test it in about five minutes
  1. Open a long category or search results page

    Choose one with more items than fit on one page. Use a private window so cached data does not hide the problem.

  2. Scroll to the bottom or click Next / Load more

    Watch whether new items appear. Note if a spinner hangs or nothing happens.

  3. Open the browser console

    Press F12 (or Cmd+Option+J on Mac Chrome) and open Console. Red errors that appear as you scroll point to a script failure.

  4. Check the Network tab

    Filter by Fetch/XHR, scroll again and look for a request for the next page. A status of 403, 404 or 500, or no request at all, tells you where to look.

  5. Try the direct URL

    Visit the page URL yourself, for example /collections/all?page=2 or /page/2/. If it errors, the problem is on the server or in routing.

  6. Repeat on mobile and in another browser

    Some failures appear only on small screens, for example a sticky bar covering the load trigger.

A background request fails

The visitor scrolls, the request for more items errors, and nothing new appears.

How to fix it

Use what you saw in the console and Network tab to choose the fix. The general order is: undo recent changes, remove script conflicts, repair the URL or request, then fix layout issues. Steps depend on your platform and theme.

Fix by platform
  1. Switch off conflicts

    Temporarily deactivate recently updated plugins (optimisation, caching, security) and test. Reactivate one by one to find the culprit.

  2. Resave permalinks

    Go to Settings > Permalinks and click Save Changes. This rebuilds rewrite rules, which fixes many /page/2/ 404 errors.

  3. Exclude the script from optimisation

    In your caching or minify plugin, exclude the theme's load-more script from combining, delaying or minifying, then clear the cache.

  4. Check admin-ajax or REST blocking

    If your firewall or security plugin blocks admin-ajax.php or the REST API for visitors, allow it for the request the theme uses.

Infinite scroll with error handling and a fallbackjavascript
const sentinel = document.querySelector('#load-more-sentinel');
const list = document.querySelector('#product-list');
let page = 2;
let loading = false;

const observer = new IntersectionObserver(async (entries) => {
  if (!entries[0].isIntersecting || loading) return;
  loading = true;
  try {
    const res = await fetch(`?page=${page}`, { headers: { 'X-Requested-With': 'fetch' } });
    if (!res.ok) throw new Error(res.status);
    const html = await res.text();
    const doc = new DOMParser().parseFromString(html, 'text/html');
    const items = doc.querySelectorAll('#product-list > *');
    if (!items.length) { observer.disconnect(); return; }
    items.forEach((el) => list.appendChild(el));
    page += 1;
  } catch (e) {
    observer.disconnect();
    document.querySelector('#next-link').hidden = false; // show plain Next link
  } finally {
    loading = false;
  }
});
observer.observe(sentinel);
Browsing a long category

Broken

  • Spinner hangs or nothing happens on scroll
  • Red errors in the console
  • Page 2 URL returns 404
  • Only the first products are ever seen

Fixed

  • New items load as the visitor scrolls
  • No console errors
  • Page 2 URL returns 200
  • A plain Next link works as a fallback

How to confirm it's fixed

Confirmation checks
  • Scrolling or clicking loads the next batch on desktop
  • The same works on a real phone, not just a resized window
  • The Network tab shows the page request returning 200
  • The Console shows no new errors during loading
  • Direct URLs such as ?page=2 and ?page=3 load correctly
  • The last page ends cleanly, with no endless spinner
  • Filters and sorting still work with pagination

How to prevent it happening again

Most breakages come from changes: theme edits, plugin or app updates, new tracking scripts, or new security rules. Build a short check into every change.

Prevention habits
  • After any theme, plugin or app update, scroll your largest category to its end
  • Test updates on a staging copy first where possible
  • Keep real, crawlable page links alongside infinite scroll
  • Review firewall and caching rule changes for blocked background requests
  • Add a monthly calendar reminder to test your top three category pages on mobile

How FunnelGuard handles this

FunnelGuard does not check this yet. Scrolling a list to confirm more items load is a possible future check, but today it is not something FunnelGuard tests or alerts on.

What FunnelGuard does cover nearby: it runs your real customer journeys on a schedule, such as lead forms, checkouts and booking or chat buttons, and checks each step, the tracking hits and whether test leads arrive. If a broken browse path stops a journey from reaching a product, the journey can fail at that step, and you get one alert with a screenshot and a likely cause after a re-check from a second region. That depends on the journey you set up running through the affected page.

To watch for this issue yourself, add a recurring manual test of your busiest category pages, watch the Console after releases, and check for 404s on ?page= URLs in Google Search Console's Pages report. You can also use any browser-testing tool that can scroll and count items. A free read-only FunnelGuard website audit is available if you want a broader look at your site.

Questions people ask

Why is my infinite scroll not loading more products?

Usually a JavaScript error, a failing background request or a plugin or app conflict is stopping it. Open the browser Console and Network tab, scroll again and look for red errors or a request returning 403, 404 or 500. That tells you which cause to fix.

Why does page 2 of my category return a 404?

The page URL is not routed correctly. On WordPress, resaving permalinks in Settings > Permalinks often fixes it. On other platforms, check the pagination setting or the route handling the page parameter.

How do I fix a Load more button that does nothing?

Check the Console for script errors when you click it. Then look in the Network tab for the request it sends. Disable recently added plugins or apps, and exclude the theme script from minify or delay settings in caching tools.

Is pagination or infinite scroll better for conversions?

Neither is always better. What matters is that it works reliably on every device and that visitors can reach all products. Many stores use a Load more button with real links underneath so it works with and without scripts.

Does broken pagination hurt SEO?

It can. If later pages cannot be loaded as real URLs, search engines may not discover products listed there. Keep crawlable links such as ?page=2 available alongside any scripted loading.

Why does infinite scroll work on desktop but not on mobile?

A sticky bar, cookie banner or footer can cover the element that triggers loading on small screens. Test on a real phone and check whether the trigger area is visible and not overlapped.

Does FunnelGuard detect broken pagination or infinite scroll?

Not yet. A scroll check is a possible future addition. FunnelGuard can still fail a monitored journey if a broken list blocks the path to a product, but it does not test the list itself.

Does FunnelGuard catch this?

Could add

Not checked yet: could be added to FunnelGuard.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.