https://github.com/oliverjash/resize-observer-loop-tests
https://github.com/oliverjash/resize-observer-loop-tests
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/oliverjash/resize-observer-loop-tests
- Owner: OliverJAsh
- Created: 2021-07-29T14:29:56.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-07-29T16:47:54.000Z (over 4 years ago)
- Last Synced: 2025-01-16T21:51:10.877Z (11 months ago)
- Language: HTML
- Size: 1.95 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# `ResizeObserver` loop tests
References:
- The best explanation of this problem: https://webkit.org/blog/9997/resizeobserver-in-webkit/#:~:text=observation.-,How%20Observations%20are%20Delivered
- https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver
- https://www.w3.org/TR/resize-observer/#:~:text=loop.-,Infinite%20loop%20is%20prevented,An,-error
The error message in different browsers:
- Chrome: "ResizeObserver loop limit exceeded"
- Safari and probably others: "ResizeObserver loop completed with undelivered notifications"
Note: in Chrome, these errors are never logged to the console but they are received by `window.onerror`.