Question

Lovable app crashes on iPhone but works on desktop

Solved · 243 viewsasked by noor_builds

Safari on iPhone reloads the page after a few seconds on my dashboard. Desktop Chrome is fine. No error, just a white flash and reload.

What I’ve tried

Removed the animations and the chart on the dashboard. It still reloads after a few seconds.

Comment

2 answers

Marked as helpful by the asker
ben_mobile

A silent reload on iOS Safari is almost always memory: the tab is killed and restarted. Common causes in generated dashboards:

  • Rendering 1,000+ rows without virtualization
  • Huge images (a 4 MB hero on a 3 MB budget)
  • A useEffect without cleanup that keeps adding listeners

Open Safari's Web Inspector via your Mac (Develop menu) and watch the memory timeline. Fix: paginate the list (20 rows), resize images, add cleanup returns.

Comment
Memory timeline climbed to about 1.2 GB. The donations table rendered all 3,000 rows. Paginated to 25 and the reloads are gone. noor_builds
oksana_k

Also check for backdrop-blur on big elements. Generated dashboards love a blurred sticky header or blurred cards, and on iOS Safari every blurred layer is an expensive compositing layer. A few of them over a long page is enough to get the tab killed on older iPhones.

Solid background with some opacity looks almost the same and costs nothing.

Comment
Every card had backdrop-blur-md. Removed it anyway, scrolling feels smoother too. noor_builds