Loading animation appears if loading taking longer than 1s.