[whatwg] Sychronous operations in onclose handlers
watsonm at netflix.com
Wed Aug 22 08:50:02 PDT 2012
I heard that there was some discussion of banning the use of synchronous operations within document onclose handlers.
Whilst it is obviously bad to hold up the closing of a document - especially indefinitely - I wondered what the solution was for applications that need to perform some final communication with an application server - say using XHR - when the document is closed ? Is it possible that events could continue to be handled for some short time after the onclose completes ? Something else ?
I understand that there are cases where this is not possible - such as sudden loss of power - but that does't mean it isn't useful to be able to perform such operations in the normal, common, case.
More information about the whatwg