markmalek / Fixed-Header-Table

jQuery plugin for tables with fixed headers
www.fixedheadertable.com
MIT License
930 stars 541 forks source link

Fixed scrolling performance issue #122

Open andreamazz opened 10 years ago

andreamazz commented 10 years ago

I was experiencing a big performance dip when implementing the library on a big table (after switching from Bootstrap to Zurb's Foundation 5). Turns out that the find()call in the scroll handler was eating a lot of cpu. I cached the first find and used the cached value in future calls.