Can someone help me with code written using Angular/RXJS to achieve below solution I have to open a popup using window.open() to load one website, it will take around 15-20 seconds for the website to get rendered in the popup. Once the site is fully loaded in the popup, I have access to libraries namespace in the popup. const library: any = window.open( 'http://10.XX.XX.XXX/customLibrary/V1', ' customLibrary ', 'toolbar=yes,scrollbars=yes,menubar=yes,location=yes,resizable=yes,width=1200,height=800' ); utilityLibrary = library.utilityLibrary; utilityLibrary object will be available only when the page is fully rendered in the popup. I want to wait till page is fully loaded and libraries are available or I want to retry for every 10 seconds till the libraries are fully loaded. After retying for 5 times, if libraries are not available then I want to exit out and alert with "libraries are not available". I have to write the code in the parent window not in popup Continue reading...