Hi Rajat,
Can I please know the usecase that you're trying to tackle, so that I can better help you out?
It helps us to understand why setTimeout() is needed.
var url ="https://static.freshdev.io/fdk/2.0/assets/fresh_client.js";
Adding var , solves the issue in #3.
Cheers!
Rajat Singh
Hello,
Whenever I try lo load your js "https://static.freshdev.io/fdk/2.0/assets/fresh_client.js" dynamically, using settimeout or from console, the FrshClient() is never resolved.
Sample Cases:
1: Library working fine.
2. Library Not working, when loading the js after few milisecs/secs.
3. Library Not working, when loading the library from console by calling the appendJS().
When library failed in initialisation no response is get on the window.onmessage, and the promise is never resolved.