I’m seeing a strange issue where it seems like my api calls seem to get called out of order. I set up a loop and make an initial call to see if a streamer is online, I then set up an if statement with a path for streamers offline, and another path for streamers online. The offline path makes an another API call using a nested getJSON method. The weird thing is that it seems like the offline getJSON method only gets called after all the online api calls are mad.
Is nesting the getJSON statements causing issues? I can’t quite figure out what the problem is.