S
SAM
Le 10/25/09 4:46 PM, JR a écrit :
I'm downloading it.
(more than half an hour to wait)
Fine ;-)
But I'ld do :
table.sortable tbody tr:hover { background-color: #c9c9c9; }
instead of :
table.sortable tbody tr.odd:hover { background-color: #c9c9c9; }
table.sortable tbody tr.even:hover { background-color: #c9c9c9; }
And I wouldn't create a specific class (even) for the default state
table.sortable tbody tr { background-color: #fff; }
table.sortable tbody tr.odd { background-color: #f0f0f0; }
(I don't know what could say Nicholas C. Zakas of that)
Hi Stéphane,
I've just watched a video about Javascript optimization in which
Nicholas C. Zakas, from Google Inc, recommended changing className
instead of style property:
I'm downloading it.
(more than half an hour to wait)
It reduces the number of DOM reflows in a loop (if I understood it
correctly).
I'd like to thank you and tell you that I put your advices into
practice:
http://www.jrfaq.com.br/sortable.htm
Fine ;-)
But I'ld do :
table.sortable tbody tr:hover { background-color: #c9c9c9; }
instead of :
table.sortable tbody tr.odd:hover { background-color: #c9c9c9; }
table.sortable tbody tr.even:hover { background-color: #c9c9c9; }
And I wouldn't create a specific class (even) for the default state
table.sortable tbody tr { background-color: #fff; }
table.sortable tbody tr.odd { background-color: #f0f0f0; }
(I don't know what could say Nicholas C. Zakas of that)