This question is jQuery oriented, but not necessarily exclusively.
The short question:
Can synchronous ajax call block a normal button from being clicked on? My testings show it doesn't happen, but maybe another browser makes problems.
The long question:
In another question I've asked, how to block on ajax call (I want it to block), the guys said that the browser will block in some cases.
Actually even the docs of jQuery say:
Note that synchronous requests may temporarily lock the browser, disabling any actions while the request is active.
I'm trying to:
1. Understand how/why that would happen.
2. Assess the probability of that to happen.
From my understanding, which might be incorrect:
I imagine that "locking" will happen to the page's UI if I, as the dev, didn't build/update the UI before the ajax call itself, which "blocks" the javascript VM, thus delaying the UI build/update. Correct or not?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…