JQuery is a simple download that takes too long for the first call

My simple jQuery load statement takes too much time (50+ seconds). There are no server side issues, and the server page logic is simple. I also tried $. Ajax , $. Get and even tried using the AJAX manual call (XMLHttpRequest) .

The following is an example jQuery download.

$(function() {
    $('#frmPrd').live('submit', function(event) {
        event.preventDefault();
        mUrl = "page1.php";
        $.ajax({
            url: mUrl,
            type: 'POST',
            data: $("#frmPrd").serialize(),
            success: function() {
                //Logged Unix timestamp here which was 1448631101 (27 Nov 2015 13:31:41 GMT)
                $("#dvCart").load("page.php");
            },
            error: function() {
                alert('Error occurred.');
            }
        });
    });
});

page.php ( ), 1448631153 (27 2015 13:32:33 ), 52- , . ? 50 ? , , . https (TLS 1.2)

+4
1

https, .

+1

Source: https://habr.com/ru/post/1617744/


All Articles