I need to set up loading like the video below, after loading all the data, the loading will be hidden.
You might want to consider using the Alpha Dialog extension to create a custom popup.