WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
186480
IntersectionObserver freezes safari on localhost
https://bugs.webkit.org/show_bug.cgi?id=186480
Summary
IntersectionObserver freezes safari on localhost
Markus
Reported
2018-06-11 00:13:25 PDT
Started by posting the issue here
https://github.com/w3c/IntersectionObserver/issues/302#issuecomment-395895715
Problem only occurs on localhost const IntersectionObserverOptions = { rootMargin: '0px 0px 800px 0px', threshold: 0.0 }; this.iIntersectionObserver = new IntersectionObserver(entries => { if (entries[0].intersectionRatio <= 0) { return; } if (entries[0].isIntersecting) { this.iIntersectionObserver.unobserve(entries[0].target); this.loadMoreProducts.emit(); } }, IntersectionObserverOptions); removing this makes the page load properly
Attachments
Add attachment
proposed patch, testcase, etc.
Simon Fraser (smfr)
Comment 1
2018-06-11 10:55:44 PDT
What browser are you reporting this against? Safari doesn't support IntersectionObserver.
Markus
Comment 2
2018-06-12 00:05:21 PDT
The issue I first filed at the pollyfill repo.. they told me to file it here. :/
https://github.com/w3c/IntersectionObserver/issues/302#issuecomment-395895715
Simon Fraser (smfr)
Comment 3
2018-06-13 16:38:41 PDT
So you're saying that the polyfill triggers the hang?
Simon Fraser (smfr)
Comment 4
2018-06-13 19:09:51 PDT
Also where is a live URL we can test with?
Markus
Comment 5
2018-06-14 05:55:18 PDT
Well I can't provide a link for you to test a localhost issue :P I have been trying to create a minimal repo but I ran in to problems (unrelated to the issue).
Ahmad Saleem
Comment 6
2023-08-13 10:47:37 PDT
It seems the user left comment on GitHub repo (on
Comment 02
): "FYI this was due to missing POLL_INTERVAL setting... once set it worked locally.. but performance get's super bad when navigating the site..." So it seems it was issue on polyfill side from end-user, can we close this? @Simon - any thoughts?
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug