I'm using a PHP script that returns a JSON array that's requested from an AJAX script.
My problem is with the the size of this array, since it must show more than 10,000 items, which are an associative array. The problem is the time that the web browser employs reading the JSON:
$.ajax({
url: "urlto/product.php",
dataType: 'json',
timeout: 800000,
}).done(function (o) {
for (var i = 0; i < o.length; i++)
{
// do something with o.[i]....
}
});
How can I decrease the request time? How can decrease the time of loading? Specifically, not the time of the PHP execution, but the load time of the AJAX and the web browser. Thanks.