8000 Fix freezing in product page · Issue #36 · xmobile-atamyrat/xmobile-v1 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix freezing in product page #36

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

Open
Babahan-0906 opened this issue Jan 27, 2025 · 0 comments
Open

Fix freezing in product page #36

Babahan-0906 opened this issue Jan 27, 2025 · 0 comments
Assignees

Comments

@Babahan-0906
Copy link
Collaborator
Babahan-0906 commented Jan 27, 2025

Issue:

when entering productDetail page from product's page, it freezes 2-3seconds (for my device) then enters details.page and then starts loading product.prices and product.tags. However, it happen's once for that specific product page. If I change product category, page refreshes products, and if I press any product on that page it freezes then goes to details.... (only once)

So in short, it doesn't immediately redirect to the details page.

Possible reasons:

  • It doesn't redirect back to a product from the details page until all requests are served in details.page (it does redirect, but the requests still run in background, dont get terminated)
  • Initial loading of details and product page takes 15-30 seconds (3-5mb each file) for the first time. (with tm speed 5mb loads in 20-30 seconds)
  • It loads translations for every page change (0.7-1~2 seconds)

Possible solutions:

1st:

  • start showing some part of the page, until other requests are going (it was on next.js course)
  • search inet how to load the page immediately for on time (is it also one time, or for opening website)
  • how to keep previous page already prepared? so that not to load again..?

2nd:

  • learn to prioritization of requests;
  • don't keep previous requests if page changes. (or keep if no other reqs), i.e sort requests?

3rd:

  • remove react-fa icons (4mb) and use mui-icons; for tiktok icon: [https://stackoverflow.com/questions/72728463/does-mui-have-a-tiktok-icon]
@Babahan-0906 Babahan-0906 self-assigned this Feb 10, 2025
@Babahan-0906 Babahan-0906 pinned this issue Feb 10, 2025
@Babahan-0906 Babahan-0906 unpinned this issue Feb 10, 2025
@Babahan-0906 Babahan-0906 pinned this issue Feb 10, 2025
@Babahan-0906 Babahan-0906 unpinned this issue Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants
0