Mobile white screen error "A problem repeatedly occurred"
-
Hello LayTheme team,
I’m experiencing a persistent issue on my website when viewed on mobile devices.
Website: www.yaninaisla.com
On mobile, the site loads but then repeatedly switches to a white screen with the message:
“A problem repeatedly occurred on https://www.yaninaisla.com/…”The page sometimes briefly appears, then the white error screen shows again in a loop. Because of this, scrolling is unstable and navigation becomes almost impossible.
On desktop everything works normally, so the issue seems to be mobile-specific.
What I have already checked:- Cleared browser cache
- Tested on different mobile browsers
- No consistent pattern with specific pages (happens across the site)
Has anyone experienced this before or could point me to what usually causes this in LayTheme?
I can provide a screenshot if helpful.
Thanks a lot in advance!
Yanina -
Hey! Ok im checking it out.
-
ok so basically iphones have very strict RAM limits for tabs
and your site gets over this limit because of all the vimeo embeds.every vimeo/youtube embed is like its own small website that is loaded since those players are iframes
and on top of that, vimeo loads placeholder images that are a good size for desktop, but too big for phone, which adds to the RAM problem
im coding a vimeo and youtube lazy loading feature now
-
So it seems that you added all of your Vimeo embeds using +more -> +html
instead of +video -> +youtube/vimeo
This circumvents the lazy loading of videos that is done in some cases, so basically 70 Vimeo videos or YouTube videos are loaded all at once when visiting the website, even though they're not even shown because they're in a hidden page overlay.
And this also loads a Vimeo script 70 times, like the same one. It loads it 70 times because that seems to be part of the HTML video embed.
-
So I coded a workaround where Vimeo videos that were included with the HTML element also lazy load now. Same for YouTube videos.
They were already lazy loaded, but I had to turn off lazy loading of Vimeo and YouTube in some cases because there was some other bug with using the back button.
Well, anyway, now in Lay Options, in the lazy loading section, I introduced two new checkboxes: lazy load Vimeo and lazy load YouTube. I enabled both of them and made it so they're always lazy loaded if you check those boxes. I made it so it always works with HTML element embeds too, as I said before.
-

I uploaded the LayTheme version that contains this fix to your website now, because I saw that yet I still had your admin login. I enabled those two settings. Now it may have fixed the iPhone issue. If not, I'm going to continue working on this tomorrow, I think.
-
What's pretty cool is I already see now, when I visit your website, it loads more than a hundred files less and just a few megabytes instead of 50 on initial load.
-

I would also suggest we keep this setting off. We had this setting turned on on your website, the setting will load images that are way too big for mobile, and this will also create this issue where the website just crashes on your iPhone.
-
by the way, your website is really beautiful, and your work is too. I'm really impressed with everything! <3
-
hmm yea that hasnt fully fixed it yet. I will probably continue debugging this more tomorrow
For paid 1-on-1 Lay Theme Coaching, contact Audrey (audrey@cyberslayers.work) or me (info@laytheme.com).
We also code custom websites or bespoke Lay features. Drop me a line at info@laytheme.com or check out my work at arminunruh.com.
Want to support my work? paypal.me/arminunruh
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it