Show loading message only if request takes longer than...

Show loading message only if request takes longer than...

Hi,

I'm using  $.mobile.loading('show') to show the loading message while processing an ajax request which works fine. I was wondering if there is any way to only show the loading message if the ajax request takes longer than a specified time? This would avoid the loading message flashing up for a brief amount of time.

Thanks for any info.