legacy-knowledge-base
公開されました Jun. 30, 2025

Delay in "Add to Cart" Button Rendering on Slow Internet Compared to Other Platforms

written-by

Kartik Singh

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

Issue

  • The "Add to Cart" button takes time to appear when using a slow internet connection in comparison to other platforms like Amazon, the button is immediately visible, although it remains non-functional until fully loaded.

    • Observed Behavior: When accessing the 'Catalog' page with slow internet, the 'Add to Cart' button appears after a delay.

    • Expected Behavior: When accessing the 'Catalog' page with slow internet, the 'Add to Cart' button should be visible immediately.

  • Use Cases:
    • In Liferay: When a new user opens the page on a slow internet connection, the button is not rendered for a few seconds, leaving only a grey highlighted area. This can confuse the user, as they have no indication of what the grey area represents until the page fully loads.

    • In Amazon: When a new user opens the page on a slow internet connection, the button is rendered immediately but remains non-functional. This gives the user a clear idea that the button is meant to add an item to the cart, even if it is temporarily unavailable.

Note: A video has been attached for the same.

Environment

  • 2024.Q1
  • 2024.Q2
  • 2024.Q3

Resolution

  • The reported behavior is not classified as a bug, but rather as a design/visual choice by Liferay.
  • The 'Add to Cart' text is visible instead of the grey highlighted area from DXP 2024.Q4.0, as mentioned in the "LPD-30513".
  • To achieve this behavior, please upgrade Liferay to DXP 2024.Q4.0 release.
did-this-article-resolve-your-issue

legacy-knowledge-base