akhmadshin
akhmadshin
If you throttle network to slow 3g, window.navigator.connection.effectiveType === '2g' And because of it prefetch function returns undefind (return; === return undefind;). Probably they should return Promise.resolve(undefind) https://github.com/GoogleChromeLabs/quicklink/blob/453a661fa1fa940e2d2e044452398e38c67a98fb/src/index.mjs#L117
In getScrollElement function check if element [is connected](https://developer.mozilla.org/en-US/docs/Web/API/Node/isConnected) to the DOM before returning it ``` getScrollElement: () => { if (!props.tableContainerRef?.isConnected) { return null; } return props.tableContainerRef } ```