Commit 29c3ced
committed
Coveo: Fix vertical overflow race condition
Noticed that on hard page refreshes, and slower connections
that I would still see the extra vertical overflow caused by coveo.
I assumed it was a race condition, and wrapping the removal of
`atomic-relevance-inspector` in a timeout, would generally resolve it.
I didn't want a timeout to be the "fix" here, so I added the Mutation
Observer (https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver)
which appears to be the safest approach.
There's an overall 5 second timeout still, in case search never renders
for whatever reason.1 parent 83ef81d commit 29c3ced
1 file changed
+29
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
1 | 28 | | |
2 | 29 | | |
3 | 30 | | |
| |||
90 | 117 | | |
91 | 118 | | |
92 | 119 | | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
| 120 | + | |
| 121 | + | |
101 | 122 | | |
102 | 123 | | |
103 | 124 | | |
| |||
0 commit comments