Home Forums WoodMart support forum my website is loading multiple times

my website is loading multiple times

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #696252

    eswarteja327
    Participant

    I am facing a technical issue with the WoodMart theme related to duplicate AJAX requests and cart fragment refreshes.

    Issue Description

    Whenever I load my homepage or any shop/product page, the browser Network tab shows multiple AJAX calls, especially:

    ?wc-ajax=get_refreshed_fragments
    ?wc-ajax=get_refreshed_fragments (duplicate)
    guest.vary.php

    This creates the effect that the page is “loading multiple times” (flickering) and increases the total load time significantly.

    What I Observed

    WoodMart appears to be triggering its own cart fragment refresh.

    WooCommerce also triggers its native wc-cart-fragments script.

    This results in two fragment refresh operations happening simultaneously.

    These duplicate calls happen even when I am not updating the cart.

    It occurs especially on the homepage when product variations or dropdowns are visible.

    Troubleshooting I Already Did

    I have already:

    ✔ Disabled WooCommerce cart fragments
    ✔ Disabled WoodMart cart fragments
    ✔ Disabled AJAX add-to-cart options
    ✔ Cleared all cache
    ✔ Tried disabling wishlist plugins
    ✔ Tested with non-cached pages
    ✔ Used custom snippets to dequeue:

    wc-cart-fragments
    woodmart-cart

    Yet the duplicate AJAX requests still appear.

    What I Need Help With

    I need the correct WoodMart configuration or patch to avoid duplicate fragment refreshes, specifically:

    Which WoodMart setting fully disables its internal fragment refresh?

    Is there a known issue in recent versions causing duplicate AJAX calls?

    Which script or element in the header (mini cart, sticky header, wishlist, etc.) might be calling fragments twice?

    Is there an official theme filter or hook to disable WoodMart’s cart fragment script?

    Can you provide guidance on preventing wc-ajax=get_refreshed_fragments from firing more than once?

    Environment Details

    Theme: WoodMart

    Plugins: WooCommerce, Wishlist, AJAX cart features (default)

    Browser DevTools shows two separate initiators for the AJAX calls

    PHP 7/8, latest WooCommerce

    No custom caching rules that affect fragments

    Expected Behavior

    Only one cart fragment AJAX request should run, or none at all if AJAX cart features are disabled.

    Actual Behavior

    Two AJAX calls run back-to-back, causing:

    Slow page loading

    Flickering mini-cart update

    Load time jumps from 1s → 3–4s

    Heavy TTFB on mobile

    Please suggest the correct fix or patches for WoodMart to stop the duplicate AJAX fragment behavior. I can provide screenshots, Network logs, and theme settings if required.

    Attachments:
    You must be logged in to view attached files.
Viewing 1 post (of 1 total)