Adding loading gif when tree is being loaded/drawn.