29 ms·
I personally have not had a need to use XMLHttpRequest in my 5 years of js development, so I find it very strange that it accounts for 8% of hangs in IE. Is th
by bstar77 15y ago
I personally have not had a need to use XMLHttpRequest in my 5 years of js development, so I find it very strange that it accounts for 8% of hangs in IE. Is there some design pattern MS devs use in javascript causing this problem?
Pretty much every JS framework encourages async requests and managing deferred objects. Also, why are people still doing JS calls inline and not at the bottom of the page... or at least on domloaded?
I don't think XMLHttpRequest specifically is the problem, sounds more like a multitude of poor coding practices that create blocking situations.
- olavk 15y agoAnother commenter has a legitimate use case for a synchronous XHR: http://news.ycombinator.com/item?id=2846258 http://news.ycombinator.com/item?id=2846258 Regarding bottom on page, domloaded event etc. - that does not change anything, the js is still executed synchronously.