Re: Putting DIV wrapper around all code in body
- From: Alexey Kulentsov <akul@xxxxxxxx>
- Date: Mon, 31 Mar 2008 10:32:46 +0000
George Maicovschi wrote:
From personal experience I know that moving a LOT of elements (or
creating a LOT of new ones) can cause the browser to move slowly and
make a user experience not so nice, so this method shouldn't be used
on very large pages.
Couldn't we try an approach using the innerHTML? :-/
In any case browser need to remove all elements from body and insert them to DIV, but in the case of innerHTML here is additional conversion from DOM to HTML (text=body.innerHTML) and then back from HTML to DOM (div.innerHTML=text) so I don't think it's more fast then direct moving.
.
- References:
- Putting DIV wrapper around all code in body
- From: andrej . kaurin
- Re: Putting DIV wrapper around all code in body
- From: Alexey Kulentsov
- Re: Putting DIV wrapper around all code in body
- From: George Maicovschi
- Putting DIV wrapper around all code in body
- Prev by Date: Re: Hi anybody intested in developing JSLibrary by yourslef??
- Next by Date: Re: getElementByName within containing DIV
- Previous by thread: Re: Putting DIV wrapper around all code in body
- Next by thread: Re: Putting DIV wrapper around all code in body
- Index(es):
Relevant Pages
|