Silvio wrote:
> On 04/07/2015 12:51 PM, Thomas 'PointedEars' Lahn wrote:
>> Silvio wrote:
>>> On 04/06/2015 02:11 PM, Thomas 'PointedEars' Lahn wrote:
>>>> They who can read have the advantage here. It is a *warning*, not an
>>>> error message. The developer can disable the display of warnings.
>>>> They do not even have to use the Console.
>>> The warning is not the problem. But the underlying sentiment is that the
>>> feature is benign
>>
>> Gibberish.
>>
>>> and it expresses at least the desire to remove the feature at some
>>> point.
>>
>> Non sequitur. It says that those requests *in the main thread* are
>> deprecated.
>
> Nitpicking.
No, context matters. You claimed that the feature of synchronous XHR *on
the whole* is on the way out because of that warning. It is not.
> If someone depends on them being allowed in the main thread
> the potential problem is real.
There is no problem at the moment. You are making one, driven by
irrationality – fear.
>> *Popups* are not user-friendly, which is why they are blocked by default.
>
> That depends. In most of my applications for synchronous requests I am
> talking about users of my web-applications expecting they can access
> their "documents" by opening them in browser windows/tabs.
It is the 21st century. For various good reasons, popup *windows* are no
longer state-of-the-art.
>> No, the programmer cannot foresee how long it takes a server to respond.
>
> In theory he can not but that is irrelevant.
No, it is not irrelevant, and it is not theoretical at all. It is a
*practical* problem that has no solution except to avoid it. Which you have
been recommended to do.
> In theory my pages and embedded images could take forever to load as well
> making the application unusable in the first place.
False analogy. You are ignoring here that those resources are loaded in a
way that it does *not* block the browser, or browser tabs or windows,
different to synchronous XHR.
> This is a typical bullshit argument from know it alls who think they are
> able to judge what is best for the world in general and then bully
> everyone who disagrees with them.
You should have someone professional look at that inferior complex of yours.
Nobody is bullying you into anything. With apologies to JMS: You have been
told by several people, including, through the developer console, by browser
developers, that, in essence, it is foolish to implement a Web application
this way. You can continue to do it, but at least the truth is where it
needs to be.
>> You cannot know if the timeout occurred because the server could not
>> respond in time or because it could not respond at all. How many
>> synchronous requests are you going to make in order to find out,
>> blocking the user with each one?
>
> I would make only one. If the request times out in, say, a couple of
> seconds then I would show an error message that the server is not able
> to respond in a timely fashion and it is likely an error has occurred.
AISB, if you only make one request with one timeout, then you do not know if
you were too fast (i.e. your timeout was too short for the *current* server
load), or if it could not work at all. At least a second request would be
needed, and it would have to be synchronously handled as well. That way
lies madness.
>> That does not mean it is a good thing. Your logic is flawed.
>
> No it is not. The deprecation originates from a knee jerk reaction from
> a couple of browser devs
Who happen to develop the browsers, many of them in their free time, for
free. I am not (yet?) one of them. I am only the one telling you that
there is no logic in trying to complain about that here, and that there are
valid reasons for giving that warning. Go on, shoot the messenger.
> and solves no actual problem that sticks out.
Fallacy. The problem is that people are using synchronous requests because
it is *convenient* for *them*, without being aware or caring of, the
consequences, based on wrong design decisions driven by flawed reasoning
caused by lack of experience. As you so readily demonstrate here.
> In fact, only if it ever results in an actual removal of the feature
> there will be heaps of unnecessary problems.
Doubtful. You can read all over the Web that you should avoid synchronous
requests, and why. There are valid reasons to make them anyway, but what
you are referring to is not one of them. (JFYI: I have been using them for
loading scripts in a way that I can be sure that they are loaded, but that
is going to change thanks to HTML5 – the difference here being that scripts
have always been blocking.)
> In the meantime it causes a lot of stir
*You* are the one causing the stir, trying to bully people into doing what
you want them to do because of your little insignificant use case.
> with people who see the warning come up in their browser consoles and
> think something may be wrong. Many users do check the console, you know.
Utter nonsense. I daresay that most users do not even know about the
developer console – because they are not developers. You are making a
typical mistake of a Web developer: assuming that most people use their
browser in the same way that us Web developers do.
I am not going to continue to discuss with you unless you show some manners,
including a real name.