Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detail Page Slow Loading Due to Delayed or Failed API Response #17

Open
waffiqaziz opened this issue Aug 13, 2024 · 0 comments
Open

Detail Page Slow Loading Due to Delayed or Failed API Response #17

waffiqaziz opened this issue Aug 13, 2024 · 0 comments
Assignees
Labels
invalid or glitch This doesn't seem right performance Related to app performance or optimization.

Comments

@waffiqaziz
Copy link
Owner

waffiqaziz commented Aug 13, 2024

Issue:
The detail page takes too long to load when the API response is slow or encounters an error, eventually showing a "connection timeout" error. This leads to a poor user experience as the entire page load is blocked by the delayed API response.

Steps to Reproduce:

  1. Navigate to a detail page that fetches data from the API.
  2. If the API response is slow or fails, the page loading takes an extended period.
  3. Eventually, a "connection timeout" error is displayed.

In Markdown, an extra blank line before a list or other elements can introduce an unwanted space. To resolve this, you can simply remove the extra blank line between the header (Expected Behavior:) and the bullet points. Here’s the corrected version:

Expected Behavior:

  • The detail page should load immediately with any available data.
  • Any remaining data should load dynamically once it is successfully fetched.
  • Errors should be handled gracefully without blocking the initial page load.

Actual Behavior:

  • The page delays loading until the full API response is received or times out, showing an error if the response fails.

Proposed Improvement:

  • Implement a strategy to render the page immediately with partial data and asynchronously load additional data when available, improving overall responsiveness.
@waffiqaziz waffiqaziz added the invalid or glitch This doesn't seem right label Aug 13, 2024
@waffiqaziz waffiqaziz moved this to Todo in BAZZ Movies Nov 26, 2024
@waffiqaziz waffiqaziz self-assigned this Nov 26, 2024
@waffiqaziz waffiqaziz moved this from Todo to On Hold in BAZZ Movies Dec 6, 2024
@waffiqaziz waffiqaziz added the performance Related to app performance or optimization. label Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid or glitch This doesn't seem right performance Related to app performance or optimization.
Projects
Status: On Hold
Development

No branches or pull requests

1 participant