Skip to content

Commit 97cfe7f

Browse files
committed
Remove IE11 code.
1 parent 0e1072a commit 97cfe7f

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

source/includes/_samples.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,6 @@ if (window.ResizeObserver) {
2222
sendResizeMessage();
2323
});
2424
heightObserver.observe(document.body);
25-
} else {
26-
// IE 11
27-
setInterval(
28-
sendResizeMessage,
29-
500 /* ms */
30-
);
3125
}
3226
```
3327

@@ -68,7 +62,7 @@ An integration may want to insert an iframe that resizes as its contents change.
6862

6963
### IFrame Responsibilities:
7064

71-
* **Determine when content dimensions change** - One way to do this is using [`ResizeObserver`](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver). `ResizeObserver` is not supported in IE11, so one possible solution is to fallback to polling. Polling is not ideal, but it will work for this small percentage of our traffic.
65+
* **Determine when content dimensions change** - One way to do this is using [`ResizeObserver`](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver).
7266
* **Communicate the new dimension to the outer page** - iframes can communicate with the parent page using [`postMessage`](https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage).
7367
* **Ensure a scrollbar never shows up within the iframe** - Styling may be used to ensure a scrollbar never appears in the iframe.
7468

0 commit comments

Comments
 (0)