How to display the page loading widget while loading dynamic content?

How to display the page loading widget while loading dynamic content?

Hello, 
I'm often adding content dynamically using $.getJson in order to retrieve values from a php script.

The problem is that it takes a few seconds to get the content and to display it.

How can I display the loading widget during that delay?

Thanks a lot.