AJAX query weird delay between DNS lookup and initial connection on Chrome but not FF, what is it?

前端 未结 2 971
闹比i
闹比i 2021-02-14 10:25

I have an AJAX query on my client that passes two parameters to a server:

var url = window.location.origin + \"/instanceStats\"            
$.getJSON(url, { \'un         


        
2条回答
  •  日久生厌
    2021-02-14 10:55

    I've run into this also. It only seems to happen when using localhost. If you use 127.0.0.1 (or even the computer name), it will not have the extra delay.

提交回复
热议问题