Skip to content

site crashes on iOS 17 Safari #493

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

Closed
eltigerchino opened this issue Aug 30, 2023 · 9 comments
Closed

site crashes on iOS 17 Safari #493

eltigerchino opened this issue Aug 30, 2023 · 9 comments

Comments

@eltigerchino
Copy link
Member

eltigerchino commented Aug 30, 2023

The tutorial, without interaction, automatically refreshes, then crashes on iOS 17 Safari.

https://learn.svelte.dev/tutorial/welcome-to-svelte

Edit: the crash seems to occur once the dev container has finished booting up.

RPReplay_Final1693367814.mp4

System Info
iOS 17.0 (21A5319a)

@sgb-io
Copy link

sgb-io commented Sep 12, 2023

Also experiencing this on iOS 16.6.1.

@EricSimons
Copy link
Collaborator

Hi all, Eric from StackBlitz here- this is a limitation on iOS' end regarding memory available to webpages. This might be fixed in the latest iOS 17 release but I haven't been able to test it yet. If someone else who has 17 can check that'd be helpful!

@eltigerchino
Copy link
Member Author

Hi Eric. Unfortunately, it's still not fixed. Tested on iOS 17.0.1.

@sgb-io
Copy link

sgb-io commented Sep 25, 2023

Hi @EricSimons, can you elaborate at all? It sounds like StackBlitz just doesn't work at all on iOS mobile safari?

If that's the case, with respect, I'd suggest that learn.svelte.dev should consider other options. A totally broken website at the front of the tutorial doesn't seem very convincing to potential Svelte adopters. It's also a difficult sell within organisations with the website in it's current state on iOS.

@EricSimons
Copy link
Collaborator

It completely depends on how much memory Safari is willing to allocate to the current browser tab, which tends to be extremely conservative. This is not an issue on Android browsers though so the good news is that doesn't seem to be a hardware limitation. It's expected that new browser engines will be able to land on iOS soon which will help solve this issue. On our side, we're exploring further ways to reduce memory usage but this seems to be a fundamental limitation in Safari that will be hard to work around downstream.

Regarding SvelteKit's learn tutorial- until iOS Safari improves their memory usage story, I think a reasonable workaround would be making the tutorial run in a "static" mode when running on iOS Safari. Having it be interactive would be ideal of course, but the core concepts would still be relayed to learners similar to other tutorials / guides.

@mdevils
Copy link

mdevils commented Oct 24, 2023

Is there a way to disable whatever eats so much memory? I just want to read the tutorial and it keeps crashing. Is there a tutorial in PDF format so I can finally get an idea about what Svelte is?

@kane81
Copy link

kane81 commented Jan 16, 2024

This is still happening on iOS 17.2.1 (iPhone 12)
Using Chrome or Safari on the phone.
Any fixes?

@JPVan
Copy link

JPVan commented Feb 17, 2024

As a temporary solution until Apple allows other browsers (maybe never) could this website check for iOS and not load a web container? Or on all devices not load web container until the user selects Editor from the Tutorial / Editor switch? Then it’s still obviously broken by Apple but also still partly usable for those on iOS.

@eltigerchino
Copy link
Member Author

closed as duplicate of #416

@eltigerchino eltigerchino closed this as not planned Won't fix, can't repro, duplicate, stale Feb 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants