One common cause of slow hovering performance is the use of descendant CSS
selectors in your CSS files.
This is bad:
.myForm td {
padding: 3px;
}
This is good:
.myCell {
padding: 3px;
}
When you use the first version, the browser matches the second part "td" to
EVERY TD element on the page. It then walks up the DOM looking for a parent
element with ".myForm". For a large app, especially one with a large table,
most TD elements are not part of .myForm and you end up with a degenerate
case where you walk up to the body element. So, each time you hover over a
row, you have 100s of DOM walks to slow down your app. Avoid using
descendent selectors where the child is a common element.
Thanks,
John LaBanca
[email protected]
On Thu, Feb 17, 2011 at 2:29 PM, Pedro Perez <[email protected]> wrote:
> Hello,
>
> My CellTable seems really slow in Internet Explorer 8. It looks like
> the row highlighter can't keep up with the mouseover (even if there
> are only 10 records in the table). With longer tables it makes
> scrolling down the page seem laggy. I don't seem to have this problem
> in FireFox 3.6.
>
> Has anyone else run into this problem? I've read this thread but found
> no solution:
>
> http://www.devcomments.com/My-CellTable-is-slow-and-I-don-t-know-why-at1035655.htm
>
> Has anyone else had problems with IE and slow CellTables being slow?
> Hoping for some tweak that could speed it up. Alternatively, is there
> a way to disable row highlighting? I removed the styles from the .css,
> and although it takes away the highlight itself, the CPU still gets
> eaten up and the table scroll lags.
>
> Any input is *greatly* appreciated.
>
> Thanks so much,
> Pedro
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.