Show and hide the LoaderContainer inside the Grid OnRead handler. Be aware of possible UI thread blockage (see the note below the "Basic LoaderContainer" example).
Here is an REPL example for both options. I recommend using a separate LoaderContainer, because it doesn't require knowledge of our internal HTML rendering. For the same reason, this approach is also more future-proof.
Thanks for the REPL examples. It seems your "Built-in Grid LoaderContainer" example doesn't show the loading gif. I followed that approach on my MVC application so I need to have that approach working. I'll see if I can get it running on my app but because this is a widely available solution you may want to update it.
The Grid will not display a loading animation during its initial rendering. The component cannot know when or even if data will be provided to it. Initial automatic loading sign can either show indefinitely, or it could prevent the user from altering any saved Grid state (such as changing filters). If you want a loading animation on the initial load, you can use a LoaderContainer component. See the Grid Loading Animation Live Demo.