What's wrong with this code?
while
is_loading
There variable is in the condition before we created it.