* Whether the document is ready. * @param {!Document} doc * @return {boolean}
(doc)
| 44 | * @return {boolean} |
| 45 | */ |
| 46 | function isDocumentReady(doc) { |
| 47 | const readyState = getReadyState(doc); |
| 48 | return readyState != 'loading' && readyState != 'uninitialized'; |
| 49 | } |
| 50 | |
| 51 | /** |
| 52 | * Calls the callback when document is ready. |
no test coverage detected