added loading visualization for large scripts