Slow Jquery Dialog open problem on remote server

Slow Jquery Dialog open problem on remote server

Hello,

I'm using JqueryUI modal dialog with ajax request. It works fine on my local server but when I tested it on my remote server(godaddy) dialog opens very slow. Here code I use;


<a href="#" onclick="showUrlInDialog('menu_proj.php','New Project'); return false;">

function showUrlInDialog(url,title)
var tag = $("<div></div>");  
$.ajax(
{
url: url,
async: true,
crossDomain: true,
success: function(data) 
{
tag.html(data).dialog(
{
modal: true,
width: 800,
title: title
}
).dialog('open');
}
});
}
Can anyone have idea ?

Thank you.