https://bugzilla.wikimedia.org/show_bug.cgi?id=56426

Gilles Dubuc <gdu...@wikimedia.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gdu...@wikimedia.org

--- Comment #1 from Gilles Dubuc <gdu...@wikimedia.org> ---
It's actually possible to make logging work on navigating away without a
timeout by making a synchronous XHR call during the onbeforeunload. Browsers
will abort an classic async one, but not a synchronous one. The drawback is
that it freezes the page, but since the backend of event logging correctly
aborts the request right away, it would be hardly felt. (I've already built
something like that in production at dA).

This change would imply modifying (or overloading) mw.eventLog to make it do a
synchronous XHR when needed instead of using an image object.

What do you think? Is the synchronous thing worth filing in Mingle?

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to