Can someone explain why i cant get the desired delay between each request?
They are all happening at once.
$(window).load(function(){
$(\'a[href]\').
Becase setTimeout for all links is called at once. If you want to delays between call you need to do something like this:
var delay = 2000;
$('a[href]').each(function(){
var linkk = $(this)
var linkkhref = linkk.attr('href');
window.setTimeout(function(){ conectar('HEAD', linkkhref, resp) }, delay);
delay += 2000;
....