Better timing for removing loading spinner