Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #15414
| Date | 2012-08-18 16:57 +0200 |
|---|---|
| From | SAM <stephanemoriaux.NoAdmin@wanadoo.fr.invalid> |
| Newsgroups | comp.lang.javascript |
| Subject | Re: How to improve performance growing this <li> |
| References | (1 earlier) <k0l3nh$qhe$1@speranza.aioe.org> <afas28dkk284q30s2gh9tacq25ptjjo9pu@4ax.com> <k0mjbm$7a7$1@dont-email.me> <k0mnru$91p$1@dont-email.me> <k0nsu0$uhj$1@dont-email.me> |
| Message-ID | <502fad63$0$6223$ba4acef3@reader.news.orange.fr> (permalink) |
| Organization | les newsgroups par Orange |
Le 18/08/12 13:05, Denis McMahon a écrit :
>
> After testing and some tweaks, working code (firefox anyway) here:
Ha! enfin !
not more M$ only :-(
with now a "normal" DOM :
newLi = document.createElement( "li" )
instead of :
newLi = document.createNode("li");
> <http://www.sined.co.uk/tmp/jslist.htm>
I don't know if it would run faster with :
newLi.innerHTML = "Item " + i + " text";
instead of :
newLiText = document.createTextNode( "Item " + i + " text" );
newLi.appendChild( newLiText );
Tested,
- better with createTextNode solution for my Firefox and Chrome
- indifferent with my Opera
--
Stéphane Moriaux avec/with iMac-intel
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How to improve performance growing this <li> "Richard Maher" <maher_rj@hotspamnotmail.com> - 2012-08-17 17:41 +0800
Re: How to improve performance growing this <li> "Richard Maher" <maher_rj@hotspamnotmail.com> - 2012-08-17 17:43 +0800
Re: How to improve performance growing this <li> Dr.Kral@nyc.rr.com - 2012-08-17 07:27 -0400
Re: How to improve performance growing this <li> "Richard Maher" <maher_rj@hotspamnotmail.com> - 2012-08-18 06:18 +0800
Re: How to improve performance growing this <li> Denis McMahon <denismfmcmahon@gmail.com> - 2012-08-17 23:16 +0000
Re: How to improve performance growing this <li> Denis McMahon <denismfmcmahon@gmail.com> - 2012-08-18 00:33 +0000
Re: How to improve performance growing this <li> Denis McMahon <denismfmcmahon@gmail.com> - 2012-08-18 11:05 +0000
Re: How to improve performance growing this <li> SAM <stephanemoriaux.NoAdmin@wanadoo.fr.invalid> - 2012-08-18 16:57 +0200
Re: How to improve performance growing this <li> Denis McMahon <denismfmcmahon@gmail.com> - 2012-08-18 16:23 +0000
Re: How to improve performance growing this <li> Dr J R Stockton <reply1233@merlyn.demon.co.uk.invalid> - 2012-08-19 20:16 +0100
Re: How to improve performance growing this <li> SAM <stephanemoriaux.NoAdmin@wanadoo.fr.invalid> - 2012-08-20 12:29 +0200
Re: How to improve performance growing this <li> Dr J R Stockton <reply1234@merlyn.demon.co.uk.invalid> - 2012-08-21 20:44 +0100
csiph-web