Comparing two codes, which approach is better?

What would be the fun it that? But here is a answer from stackoverflow that has something very similar to what I was thinking. That way you at least can do without apiIsReady and replace it with something bit more useful :slight_smile:

Keep having fun!