• Resolved comyu

    (@comyu)


    Hello! Im getting a waiting time of 8-9 seconds for adding something to the cart using ajax (example page https://wear-together.at/product/hdbw-hoodie/).
    Almost the entire duration in the dev tools comes from

    Request URL:

    https://wear-together.at/product/hdbw-hoodie/

    Request Method:

    POST
    With Payload:

    1. attribute_colors: Charcoal
    2. attribute_sizes: L
    3. quantity: 1
    4. add-to-cart: 30828
    5. product_id: 30828
    6. variation_id: 30842

    My DB queries have a normal speed according to query monitor, i use redis and cloudflare. The rest of the page is quick to load when cached. How would i locate what causes this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @comyu,

    The delay you’re experiencing could be due to many factors. Since you’ve already checked your database queries, and they seem to be running at a normal speed, I suggest looking at the following:

    1. Try disabling all your plugins except WooCommerce and switching to a default WordPress theme like Storefront to see if the issue persists. If the delay disappears, enable the plugins one by one to identify which one may be causing the delay. More info: https://woo.com/document/how-to-test-for-conflicts/
    2. Check your server response time. If the server response time is high, it could be a server issue.
    3. Monitor your Ajax calls in the browser using the Network tab in the Chrome Developer Tools. This can help you pinpoint if a specific Ajax call is taking too long.

    Let us know how that goes for you. Looking forward to hearing from you!

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – we’ll be here if and/or when you are ready to continue.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘POST on Add To Cart AJAX extremely slow’ is closed to new replies.