Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #27706
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.datemas.de!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail |
|---|---|
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
| Newsgroups | comp.lang.javascript |
| Subject | Re: Is it necessary to explicitly destroy elements? |
| Date | Sun, 17 May 2015 08:01:24 +0200 |
| Organization | PointedEars Software (PES) |
| Lines | 44 |
| Message-ID | <1975681.PYLPBkoTqA@PointedEars.de> (permalink) |
| References | <mj7odj$ejr$1@dont-email.me> <GC-20150516175759@ram.dialup.fu-berlin.de> <2602320.PcnAOMWr9L@PointedEars.de> <mj8pgm$nev$1@speranza.aioe.org> |
| Reply-To | Thomas 'PointedEars' Lahn <usenet@PointedEars.de> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset="ISO-8859-1" |
| Content-Transfer-Encoding | 8Bit |
| X-Trace | solani.org 1431842647 23338 eJwFwQkBwDAIA0BLZDwFOdAR/xJ65xqIeyw8zOlsMLdUwoUo1UU3uWO2dbI+AQd6TTML89sDGecQ1w== (17 May 2015 06:04:07 GMT) |
| X-Complaints-To | abuse@news.solani.org |
| NNTP-Posting-Date | Sun, 17 May 2015 06:04:07 +0000 (UTC) |
| User-Agent | KNode/4.14.2 |
| X-User-ID | eJwFwYEBwDAEBMCVhPgwjuL3H6F3bjjod+G4TqfYc81EyOqUKrLNBqyMiTcx/G7pKnZ8yUKdjxTJzV7r/AFKqRY9 |
| Cancel-Lock | sha1:n5mopxQ0LvyzaEloYugphWi/sRA= |
| X-NNTP-Posting-Host | eJwFwQEBACAIA7BKIueXOCjaP4JbOI1HYBDx4i0dpcQF82Jvb1VWMbfFuI2cc92kVwbgoz8L5BBa |
| Mail-Copies-To | usenet@PointedEars.de |
| Xref | csiph.com comp.lang.javascript:27706 |
Show key headers only | View raw
Joao Rodrigues wrote: > Thomas 'PointedEars' Lahn wrote: >> Stefan Ram wrote: >>> - avoid circular references between JavaScript objects and DOM objects >>> - avoid using closure variables in event handlers >>> - avoid using inline event handlers (onclick='f()') >>> - avoid using expando properties >>> - nullify expando properties and DOM references when not needed anymore >> >> The IE memory leak issue has been resolved as of IE 9, so given the >> target environments none of this is necessary anymore. Therefore, the >> programming language to which these measures applied, was JScript, not >> JavaScript, and only the MSHTML DOM, not all DOMs. > > Even though newer versions of modern browsers seem to have solved the > memory leak problems of yore, this issue may arise again because of the > single-page applications, for one, JS animations without properly > clearing timers. That is a separate issue. Yes, one should clear one?s timers. > So, we have one more reason to use CSS animations instead of JS > animations. True, but /non sequitur/. > There is a good article by Addy Osmani teaching how to chase leaks with > Chrome DevTools [2]. > > [2] > <http://addyosmani.com/blog/taming-the-unicorn-easing-javascript-memory-> profiling-in-devtools/> Your research is lacking depth. This article was published on 2013-04-11, around the time that Chrome 26 was released, which used WebKit as layout engine. The current stable Chrome version is 42 and uses a different layout engine, Blink. -- PointedEars FAQ: <http://PointedEars.de/faq> | SVN: <http://PointedEars.de/wsvn/> Twitter: @PointedEars2 | ES Matrix: <http://PointedEars.de/es-matrix> 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
Is it necessary to explicitly destroy elements? "Leonardo Azpurua" <leonardo@exmvps.org> - 2015-05-16 11:14 -0430
Re: Is it necessary to explicitly destroy elements? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-05-16 17:44 +0200
Re: Is it necessary to explicitly destroy elements? "Leonardo Azpurua" <leonardo@exmvps.org> - 2015-05-16 11:32 -0430
Re: Is it necessary to explicitly destroy elements? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-05-16 18:06 +0200
Re: Is it necessary to explicitly destroy elements? "Leonardo Azpurua" <leonardo@exmvps.org> - 2015-05-16 11:42 -0430
Re: Is it necessary to explicitly destroy elements? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-05-16 18:12 +0200
Re: Is it necessary to explicitly destroy elements? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-05-16 18:09 +0200
Re: Is it necessary to explicitly destroy elements? Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2015-05-16 22:05 -0300
Re: Is it necessary to explicitly destroy elements? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-05-17 08:01 +0200
Re: Is it necessary to explicitly destroy elements? Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2015-05-17 13:29 -0300
Re: Is it necessary to explicitly destroy elements? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-05-17 19:06 +0200
Re: Is it necessary to explicitly destroy elements? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-05-17 11:53 +0200
Re: Is it necessary to explicitly destroy elements? Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2015-05-17 13:20 -0300
csiph-web