Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #22829
| Message-ID | <1511583.qYEu64gA9W@PointedEars.de> (permalink) |
|---|---|
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
| Organization | PointedEars Software (PES) |
| Date | 2014-01-28 00:10 +0100 |
| Subject | Re: Shutting script down when leaving page |
| Newsgroups | comp.lang.javascript |
| References | <lc4jit$bmm$1@reader1.panix.com> <R5ydnabdDqqqm3vPnZ2dnUVZ_tqdnZ2d@westnet.com.au> <6507961.N3xZG9CObR@PointedEars.de> <52e6c38d$0$6663$9b4e6d93@newsspool2.arcor-online.net> |
Christoph Michael Becker wrote:
> Thomas 'PointedEars' Lahn wrote:
>> Andrew Poulos wrote:
>>> On 27/01/2014 2:25 PM, Xox wrote:
>>>> It seems reasonable to assume that the script would stop running.
>>
>> No, it is not. Window and document are separate entities.
>>
>>>> But is this in fact known to be the case across all contemporary
>>>> browsers?
>>
>> No, it never was.
>
> According to the HTML5 CR "Unloading documents"[1]:
>
> | If the Document's salvageable state is false, empty the Document's
> | Window's list of active timers.
Thanks, but I wouldn’t hold my breath for conforming implementations of
HTML5.
> Apparently you claim that there are or have been browsers that didn't do
> this.
There have been some, at least.
> Can you name them or otherwise elaborate a bit on the issue, please.
^
Well, BTST (and no, I cannot remember exactly¹), so I prefer to call
window.clearInterval()/clearTimeout onunload at the latest. Better safe
than sorry.
> [1] <http://www.w3.org/TR/html5/browsers.html#unload-a-document>
________
¹ Sorry, it has been 14 years of professional Web development, and
about 16 years of ECMAScript-based Web programming in total now.
--
PointedEars
Twitter: @PointedEars2
Please do not Cc: me. / Bitte keine Kopien per E-Mail.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Shutting script down when leaving page Xox <etacx18@etaoin.com> - 2014-01-27 03:25 +0000
Re: Shutting script down when leaving page Andrew Poulos <ap_prog@hotmail.com> - 2014-01-27 18:08 +1100
Re: Shutting script down when leaving page "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2014-01-27 10:23 +0100
Re: Shutting script down when leaving page Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-01-27 11:21 +0100
Re: Shutting script down when leaving page Tim Streater <timstreater@greenbee.net> - 2014-01-27 10:41 +0000
Re: Shutting script down when leaving page Xox <etacx18@etaoin.com> - 2014-01-27 19:43 +0000
Re: Shutting script down when leaving page "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2014-01-27 20:53 +0100
Re: Shutting script down when leaving page Xox <etacx18@etaoin.com> - 2014-01-27 20:52 +0000
Re: Shutting script down when leaving page Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-01-28 01:20 +0100
Re: Shutting script down when leaving page Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-01-28 01:24 +0100
Re: Shutting script down when leaving page "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2014-01-27 18:44 -0800
Re: Shutting script down when leaving page Xox <etacx18@etaoin.com> - 2014-01-28 05:03 +0000
Re: Shutting script down when leaving page Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-01-28 11:33 +0100
Re: Shutting script down when leaving page Xox <etacx18@etaoin.com> - 2014-01-28 19:40 +0000
Re: Shutting script down when leaving page "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2014-01-28 09:31 +0100
Re: Shutting script down when leaving page Christoph Michael Becker <cmbecker69@arcor.de> - 2014-01-27 21:37 +0100
Re: Shutting script down when leaving page Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-01-28 00:10 +0100
Re: Shutting script down when leaving page Christoph Michael Becker <cmbecker69@arcor.de> - 2014-01-28 00:54 +0100
csiph-web