I am using php & jquery. I use ajax calls to load some huge html content got from some other php page. As it gets slower as time goes, i understood that the problem is t
In your PHP page that returns the html content, you can do this:
// $html should contain the html code you want to return, e.g
// ...............
$html = json_encode(array('html'=>$html));
echo $html;
die;
In the javascript, you could do something like this:
function getHtml()
{
$.getJSON("yourphpPage.php", function (result)
{
$("#yourHtmlDiv").html(result.html);
}
);
}