Czy ktoś mógłby mi doradzić dlaczego poniższe żądanie wykonuje się średnio 3sek?
Kod
$.ajax({
url: "newsy/1.htm",
type: 'GET',
success: function(html){
wynik = split(html);
$('#imgNews h2, #imgNews p, #imgNews #img, #imgNews span').remove();
$('#imgNews').prepend(wynik[1]);
$('#newsTxt').prepend(wynik[2]);
$('#newsTxt').click(function() { window.location = $('#img').parent().attr('href'); });
}
});
url: "newsy/1.htm",
type: 'GET',
success: function(html){
wynik = split(html);
$('#imgNews h2, #imgNews p, #imgNews #img, #imgNews span').remove();
$('#imgNews').prepend(wynik[1]);
$('#newsTxt').prepend(wynik[2]);
$('#newsTxt').click(function() { window.location = $('#img').parent().attr('href'); });
}
});