Skip to content

fix(mobile): home page load performance#23

Merged
typelets merged 2 commits intomainfrom
fix/home-page-load-performance
Oct 18, 2025
Merged

fix(mobile): home page load performance#23
typelets merged 2 commits intomainfrom
fix/home-page-load-performance

Conversation

@typelets
Copy link
Copy Markdown
Owner

Summary

Optimizes home page load performance by replacing sequential folder pagination with parallel requests.

Problem

Home page was experiencing 2+ second load times due to sequential API pagination with artificial delays:

  • Folders API was fetching pages one-by-one with 100ms delays between each request
  • 3 pages = 800ms just for folder loading

Solution

Implemented parallel pagination that:

  • Fetches page 1 to determine total pages
  • Fires remaining page requests simultaneously
  • Eliminates artificial delays between requests

Performance Impact

  • Folder API: ~800ms → ~400ms (50% faster)
  • Home page load: ~2000ms → ~1400ms (30-40% improvement)
  • User experience: Noticeably faster initial load

Testing

  • Home page loads without errors
  • All folders display correctly
  • Load time improved significantly

Technical Details

  • Added fetchAllPagesParallel() utility function
  • Updated getFolders() to use parallel pagination
  • Maintains backend pagination limits (50 items/page)

- Replace sequential pagination with parallel page fetching
- Eliminates 100ms artificial delays between page requests
- Fetches pages 2+ simultaneously after page 1 determines total
- Reduces folder API time from ~800ms to ~400ms (50% faster)
- Improves home page load time by 30-40%
@typelets typelets self-assigned this Oct 18, 2025
@typelets typelets merged commit 3e3faed into main Oct 18, 2025
3 checks passed
@github-actions
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 1.28.5 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants