Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.albasani.net!news.teledata-fn.de!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="ISO-8859-1" Message-ID: <2032755.yFNCssulJW@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Thu, 06 Mar 2014 10:58:09 +0100 User-Agent: KNode/4.11.5 Content-Transfer-Encoding: 7Bit X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&. <6ecd1d1a-8bd0-4c4f-8f38-c5d6ff8e012a@googlegroups.com> <2779103.sO63zRiCyQ@PointedEars.de> <1437763.yZijEUq800@PointedEars.de> <5316bb17$0$9517$9b4e6d93@newsspool1.arcor-online.net> <3429820.aJejIuaNvK@PointedEars.de> <53181571$0$6670$9b4e6d93@newsspool2.arcor-online.net> MIME-Version: 1.0 Lines: 22 NNTP-Posting-Date: 06 Mar 2014 10:58:11 CET NNTP-Posting-Host: 9425a475.newsspool1.arcor-online.net X-Trace: DXC=aXmCaXe>JOhfF8a^:6>b7eic==]BZ:afn4Fo<]lROoRankgeX?EC@@`:B3KFXJVRebDZm8W4\YJNlYUVHKH;GI^gE9g_8T=V`hf6a7W\jWXiQn X-Complaints-To: usenet-abuse@arcor.de Xref: csiph.com comp.lang.javascript:23435 Christian Winter wrote: > Am 05.03.2014 16:42, schrieb Thomas 'PointedEars' Lahn: >> Christian Winter wrote: >>> the more idiomatic appendChild? >> More importantly, why remove the child node in the first place? > > And let's not forget about triggering reflows. On limited hardware > there may be a noticeable difference between doing the resorting > on a visible tbody, which (depending on browser implementation) > may trigger up to 2 * (rowcount - 1) page reflows, and working on a > document fragment, which will mean only two reflows (when removing > and re-appending the tbody). This is, admittedly, not going to be a > problem with the OP's 20 rows, but I feel it should be mentioned. Non sequitur, see -- PointedEars FAQ: | SVN: Twitter: @PointedEars2 Please do not Cc: me. / Bitte keine Kopien per E-Mail.