When a page loads, it creates 4 AJAX requests with exactly the same payload and response

This topic has 10 replies, 3 voices, and was last updated 2 months, 1 weeks ago ago by Rose Tyler

  • Avatar: Incanda
    Incanda
    Participant
    November 17, 2024 at 10:25

    When a page loads, it creates 4 AJAX requests with exactly the same payload and response (see image attached).

    Is there a way to avoid it?

    Theme Options > Speed Optimization > Always load “wc-cart-fragments” > Off. Clear cache and check the result. OPTION IS ALREADY DISABLED?

    9 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    November 17, 2024 at 11:18

    Hello, Incanda,

    Thank you for reaching out to us.

    Could you kindly provide us with some screenshots and temporary access to your WordPress admin panel to assist you further?

    Best Regards,
    8Theme’s Team

    Avatar: Incanda
    Incanda
    Participant
    December 19, 2024 at 21:42

    See attached screenshot. 4 AJAX requests with same payload and response. It happens on all pages but you can view this URL:
    https://staging.incanda.co.za/product-category/2-seater-couches/

    Please contact administrator
    for this information.
    Files is visible for topic creator and
    support staff only.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    December 20, 2024 at 16:31

    Dear @Incanda,

    We hope this message finds you well.

    The requests you are observing originate from the Wishlist and Cart elements in your website’s header. These requests are essential for properly loading the content of the mini dropdowns associated with these widgets.

    If you would prefer not to load these requests, you may temporarily remove these elements from your header for testing purposes. This will allow you to determine if it resolves your concerns. However, please note that these requests are necessary for the proper functionality of the widgets if they are being utilized.

    Should you have any further questions or require assistance, please do not hesitate to reach out.

    Best regards,
    The 8Theme Team

    Avatar: Incanda
    Incanda
    Participant
    December 21, 2024 at 10:53

    Does it have to make the exact same request 4 times?

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    December 23, 2024 at 15:11

    Hello @Incanda
    The name of request is the same but the params that are passed in such request are different based on the widget used.
    Kind regards, Jack Richardson
    The 8theme’s team

    Avatar: Incanda
    Incanda
    Participant
    December 23, 2024 at 18:10

    Hi Jack
    The params and the response of the 4 requests are exactly the same.

    Files is visible for topic creator and
    support staff only.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    December 24, 2024 at 15:01

    Dear @Incanda,

    We hope this message finds you well.

    Have you had the opportunity to temporarily remove the cart or wishlist elements from your header content and review the number of requests afterward? Conducting this test could assist us in identifying the specific element that may be contributing to the issue on your website.

    Please let us know if you require any further guidance or support with this process.

    Best regards,
    The 8Theme Team

    Avatar: Incanda
    Incanda
    Participant
    December 31, 2024 at 09:53

    Thanks we will try that and revert.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    January 1, 2025 at 10:57

    Dear @Incanda,

    Thank you for your cooperation. Please feel free to take your time.

    Best regards,
    The 8Theme Team

  • Viewing 10 results - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.