Repository navigation
Closed
Labels
AutoAssignerNewDotQualityUsed to assign quality issues to engineersUsed to assign quality issues to engineersAwaiting PaymentAuto-added when associated PR is deployed to productionAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.Something is broken. Auto assigns a BugZero manager.ExternalAdded to denote the issue can be worked on by a contributorAdded to denote the issue can be worked on by a contributorWeeklyKSv2KSv2
Description
Problem
Attachments and images load very slowly when viewing them in the app, with reports of nearly a minute to load a single low-resolution image even on fast internet connections.
Observations
- On mobile (iOS), loading a single attachment can take ~1 minute for a low-res image
- Web loads faster than mobile, but still slower than expected for a responsive application
- User's internet is fast and everything else loads fine
- The issue is reproducible and was observed by multiple team members during Onshore
Suspected Cause
The attachment carousel feature may be preloading all images in the chat to enable the < and > navigation arrows. For chats with many attachments, this means:
- Opening one image triggers loading of potentially dozens/hundreds of other images
- This causes significant delays before the requested image is visible
- Large/active chats are disproportionately affected
Expected Behavior
- The selected attachment should load within 1-2 seconds on a decent internet connection
- If carousel preloading is needed, it should happen lazily/progressively after the primary image is loaded
- Adjacent images (prev/next) could be prioritized over distant ones
Reproduction Steps
- Open a chat with many attachments/images
- Tap on an attachment to view it in the full-screen viewer
- Observe the loading spinner duration
Platform
- iOS (primary report)
- Android (needs verification)
- Web (also affected but less severe)
Related Discussion
Slack thread: https://expensify.slack.com/archives/C05LX9D6E07/p1770083248855669
Possible Solutions
- Lazy carousel loading: Only preload adjacent images (N-1, N+1) initially, then progressively load others
- Show image immediately: Display the requested image first, then load carousel images in background
- Thumbnail fallback: Show low-res thumbnails for carousel navigation while full-res images load on demand
- Limit preload count: Cap the number of images preloaded for the carousel
Upwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~022018561992008864454
- Upwork Job ID: 2018561992008864454
- Last Price Increase: 2026-02-03
- Automatic offers:
- abzokhattab | Reviewer | 110396511
Metadata
Metadata
Labels
AutoAssignerNewDotQualityUsed to assign quality issues to engineersUsed to assign quality issues to engineersAwaiting PaymentAuto-added when associated PR is deployed to productionAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.Something is broken. Auto assigns a BugZero manager.ExternalAdded to denote the issue can be worked on by a contributorAdded to denote the issue can be worked on by a contributorWeeklyKSv2KSv2
Type
Projects
- StatusShow more project fieldsDone
Activity
melvin-bot commentedon Feb 3, 2026
Triggered auto assignment to @laurenreidexpensify (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.[-][Performance] Attachments/images load extremely slowly when viewing in the app[/-][+][$250] [Performance] Attachments/images load extremely slowly when viewing in the app[/+]melvin-bot commentedon Feb 3, 2026
Job added to Upwork: https://www.upwork.com/jobs/~022018561992008864454
50 remaining items
szymonzalarski98 commentedon Feb 24, 2026
Hey, I wanted to finish it yesterday, but encountered some problems with fleaky performance tests. My goal for today is to create this PR
szymonzalarski98 commentedon Feb 24, 2026
PR is ready for review #83185
cristipaval commentedon Feb 25, 2026
Not overdue, the second PR has been merged
szymonzalarski98 commentedon Mar 2, 2026
@mountiny Deployed to prod 3 days ago, I can't see any issues so I think we can close it
cristipaval commentedon Mar 2, 2026
I think @abzokhattab has to be paid for the C+ review, no?
abzokhattab commentedon Mar 2, 2026
Correct
[-][$250] [Performance] Attachments/images load extremely slowly when viewing in the app[/-][+][Due for payment 2026-03-06] [$250] [Performance] Attachments/images load extremely slowly when viewing in the app[/+]mountiny commentedon Mar 2, 2026
Yeah just waiting for the payment @szymonzalarski98 🙌
laurenreidexpensify commentedon Mar 6, 2026
Payment Summary