How are you implementing a loading indicator when working with external api?

If you’re retrieving a list, I would highly recommend Keith’s List Shifter. It has much finer control to let you know when it’s loading. I like to show a group with an animated something.

If it is something small, it might be interesting to use something like the Font Awesome spinners on the button itself (I’ve got a mention of it here).