This is an example of how to wait for the CMP to initialize before executing code.Examplewindow.addEventListener('UC_UI_INITIALIZED', function(event) { // Initialized });