dialog-polyfill icon indicating copy to clipboard operation
dialog-polyfill copied to clipboard

Too long running function

Open krom-xr opened this issue 4 years ago • 1 comments

https://github.com/GoogleChrome/dialog-polyfill/blob/5033aac1b74c44f36cde47be3d11f4756f3f8fda/dist/dialog-polyfill.js#L487

This function is running too long

var t = new Date()
var x =  !dialogPolyfill.isInlinePositionSetByStylesheet(dialog);
console.log('time - ', new Date() - t);
return x

in my code in firefox i have

time -  816

krom-xr avatar Jan 11 '21 10:01 krom-xr

      selectedNodes = document.querySelectorAll(rule.selectorText);

Problem - here.

krom-xr avatar Jan 11 '21 10:01 krom-xr