App freez if countly function wasn't called
I have question, for example lets assume that for some reason countly js wasn't downloaded via web browser.
Right now if this happens my app freez and users are not able to even log in, what is best way to build Countly analytics in project so my project will continue to work even if something goes wrong with countly server and js will not be downloaded? My first thought was to wrap everything in try catch but i don't like it. Mostly custom events cant be triggered so everything is freezing.