I am AJAXing in content from external pages. Most of the time the load takes less than a second, but is there a way I can fade in a div (lets say a preload div) which comes up if say the load takes longer than 3 seconds? So something like this...
$targetPoint.load($dataImportURL + " " +$rawCollectionPoint,function(){
if (($(this).load >= 3))
{
alert ("Its taken more than 3 seconds to load");
}
});