Loading icon appearing and disappering

In our code, we are looping each record while clicking on expand button. if there is 5 records inside this and on clicking on "Expand All", 5 times, loading icon is coming and going.

Need to make this loading icon appear all time, till all 5 records get expanded!

Hi likhitha, 

Did you manage to solve this already?