* Periodically checks that all items * have been loaded in the dom. Calls * this.listen() once all the items are * present. * * @private
()
| 217 | * @private |
| 218 | */ |
| 219 | getReady () { |
| 220 | let interval = setInterval(() => { |
| 221 | this.container = document.querySelector(this.containerClass); |
| 222 | |
| 223 | if (this.ready()) { |
| 224 | clearInterval(interval); |
| 225 | |
| 226 | this.listen(); |
| 227 | } |
| 228 | }, 100); |
| 229 | } |
| 230 | |
| 231 | observeContainerResize() { |
| 232 | if (this.resizeObserver) return; |