mirror of https://github.com/gorhill/uBlock.git
avoid reporting the DOM layout while it is loading
This commit is contained in:
parent
4ad22d6f92
commit
497eb87fb0
|
@ -503,6 +503,11 @@ var domLayout = (function() {
|
||||||
hostname: window.location.hostname
|
hostname: window.location.hostname
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if ( document.readyState !== 'complete' ) {
|
||||||
|
response.status = 'busy';
|
||||||
|
return response;
|
||||||
|
}
|
||||||
|
|
||||||
// No mutation observer means we need to send full layout
|
// No mutation observer means we need to send full layout
|
||||||
if ( mutationObserver === null ) {
|
if ( mutationObserver === null ) {
|
||||||
mutationObserver = new MutationObserver(onMutationObserved);
|
mutationObserver = new MutationObserver(onMutationObserved);
|
||||||
|
|
Loading…
Reference in New Issue