Currently, I am immersed in a project that requires extensive interaction between JavaScript and managed code. Specifically, my JS application must seamlessly communicate with the Silverlight application on the webpage from the get-go. This necessitates the Silverlight app to fully load before the execution of the JS code.
However, I frequently encounter errors indicating that the object cannot be found because the Silverlight app has not finished loading yet. Therefore, I am seeking a method to pause the JS application until the Silverlight loads completely and then resumes execution?