-
Notifications
You must be signed in to change notification settings - Fork 136
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
Serve IntersectionObserver to iOS 14 #1082
Comments
tricky issue Would be interesting to know if this is purely caused by the experimental feature flags in browser settings being turned off. |
Tricky indeed. I don't know if we could answer that question unfortunately. Perhaps @salemhilal could help us try and find that answer? 🤞 |
I'm actually going to defer to @mq2thez for that one; he's the one who did the initial research that concluded that it's possible for IntersectionObserver to be disabled in the first place, so he'd likely have more context as to when it might be missing. |
While it's not impossible that that is the case, I think it's pretty unlikely. We were seeing error rates for Manually disabling it was one way that I was able to replicate this, but I suspect that the OS can do it in other ways as well. I've tried tweeting at a number of different Safari / Webkit folks with no reply, though. |
Do you have any stats on the percentage of affected visitors?
I think that is indeed the best way forward. We use polyfill-library differently (bundled with website code) and ship the IntersectionObserver polyfill wrapped in feature detection to iOS 12 - 13.x. We haven't had any issues with this. |
@rowanbeentje do you happen to know some more about the IntersectionObserver issues on iOS? Have you seen this happen on the FT app or website? |
😱 I was not aware of this! I know settings for various features like this can be toggled off in Settings > Safari > Advanced > Experimental Features but I can't imagine there are any users who do that... On the FT app we ship a polyfill which feature-detects, so we wouldn't notice this; we'd also find it hard to notice other than looking at Sentry, where I can't see any obvious errors 😬 |
@mq2thez Can you share the code for the experiment you ran?
Collecting more data on different sites could be useful. |
There are reports on Twitter (https://twitter.com/sangster/status/1424736454882648069) that iOS 14 sometimes does not have IntersectionObserver - we should serve the IntersectionObserver to all iOS 14 users to ensure the feature is always available. Resolves #1082
@romainmenke I can't, but our use case is different here. We use a self-hosted service and have a browser perform a request to it, similar to using the public |
@mq2thez is there a chance that:
|
@salemhilal The errors were literally As I mentioned in the original comment, we had to revisit this problem because we got an influx user reports that the homepage was broken when folks were enabling the Even before that, however, I had verified to my own satisfaction that the original problems were unlikely to be due to bots. |
There are reports on Twitter (https://twitter.com/sangster/status/1424736454882648069) that iOS 14 sometimes does not have IntersectionObserver - we should serve the IntersectionObserver to all iOS 14 users to ensure the feature is always available. Resolves #1082
What
There are reports on Twitter that iOS 14 sometimes does not have IntersectionObserver - we should perhaps serve the IntersectionObserver to all iOS 14 users to ensure the feature is always available. We could wrap the polyfill in a feature detect to ensure we don't polyfill over the feature if it is already available.
Details
Reports from Etsy and N26 engineers that sometimes iOS 14 does not have IntersectionObserver enabled
-- https://twitter.com/sangster/status/1424736454882648069
The text was updated successfully, but these errors were encountered: