fix(core): update
This commit is contained in:
		| @@ -15,10 +15,15 @@ export const elementBasicSetup = async () => { | |||||||
|     const documentReady = defer(); |     const documentReady = defer(); | ||||||
|     document.onreadystatechange = () => { |     document.onreadystatechange = () => { | ||||||
|       if (document.readyState === 'interactive' || document.readyState === 'complete') { |       if (document.readyState === 'interactive' || document.readyState === 'complete') { | ||||||
|  |         console.log('elementBasicSetup: element basic setup complete') | ||||||
|         documentReady.resolve(); |         documentReady.resolve(); | ||||||
|  |       } else { | ||||||
|  |         console.log('elementBasicSetup: document not yet ready'); | ||||||
|       } |       } | ||||||
|     }; |     }; | ||||||
|  |     console.log('elementBasicSetup: waiting for document to be ready'); | ||||||
|     await documentReady.promise; |     await documentReady.promise; | ||||||
|  |     console.log('elementBasicSetup: document ready!'); | ||||||
|  |  | ||||||
|     // lets get started |     // lets get started | ||||||
|     const head = document.querySelector('head'); |     const head = document.querySelector('head'); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user