committed 02:54PM - 27 Jul 26 UTC
Previously, the WASM-based composer image optimization crashed the page
on devic…es stuck on EOL iOS versions (e.g. iPhone 8 / iPad 5 on iOS
16.7), where WebKit's memory watchdog reloads the page instead of
raising a catchable error.
This change detects the iOS major version from the user agent (falling
back to Safari's `Version/` token on iPadOS, whose desktop UA
masquerades as macOS) and skips client-side optimization entirely on iOS
18 and older, matching the EOL list at https://endoflife.date/iphone.
Affected devices upload their original files instead.