Problems with FixedHeader 3.2.x vs 3.1.9

Problems with FixedHeader 3.2.x vs 3.1.9

Nick HopeNick Hope Posts: 48Questions: 12Answers: 1

I am finding 2 problems with FixedHeader 3.2.x compared to 3.1.9.

RESPONSIVENESS

FixedHeader 3.2.1 or later is slower to react than 3.1.9, which is snappier. 3 comparative examples:

https://fplform.com/Fixed-Header-3pt1pt9.php
https://fplform.com/Fixed-Header-3pt2pt1.php
https://fplform.com/Fixed-Header-3pt2pt3.php

ROWS JUMP WHEN SELECTED

With FixedHeader 3.2.2 or later, with the Select plugin, my rows are jumping downwards significantly when selected or de-selected. With 3.2.1 or earlier, I only occasionally see a small jump upwards. 2 comparative examples:

https://fplform.com/SearchPanes-1pt4-FixedHeader-3pt2pt1.php
https://fplform.com/SearchPanes-2pt0pt1-FixedHeader-3pt2pt3.php

(Note that the searchPanes versions are different to illustrate a separate problem, but don't affect the FixedHeader issue.)

Replies

  • rf1234rf1234 Posts: 2,809Questions: 85Answers: 406

    Same here! Thanks for sharing. I thought this had been resolved though.
    @allan can you help us out on this one please?

  • Nick HopeNick Hope Posts: 48Questions: 12Answers: 1

    The "jump down" on select is still happening with the current nightlies of dataTables, fixedHeader and Select.

  • allanallan Posts: 61,972Questions: 1Answers: 10,160 Site admin

    Interesting. I believe it is caused by the call to table.columns.adjust(); in sumRowsClick. I will dig into this and let you know what I find.

    One thing - when I load the page it is loading 24MB of data which is why it is so slow initially. I don't think your server is sending a gzip response (I might be wrong - the Chrome header statements aren't 100% clear on that). It would be worth checking that and if not enabled, add that. It will make a big difference to that initial load time if it isn't enabled yet.

    Beyond that, you might consider using Scroller with server-side processing (assuming you want that same scrolling grid - paging is far more performant).

    Allan

  • allanallan Posts: 61,972Questions: 1Answers: 10,160 Site admin

    I've made a change to FixedHeader to fix the jumping around issue - thanks for all the test cases!

    I do see the performance issue on your pages - I suspect the more complex nature of your table is why it is so much slower than what I am seeing in my own examples. That is something I'll need to circle back to look at.

    Allan

  • Nick HopeNick Hope Posts: 48Questions: 12Answers: 1

    Thank you @allan. Your link gives a 404 error and I can't find a commit, but I can confirm that the "jump down" issue is fixed with the current nightly build of fixedHeader.

    You were right that compression was not enabled for my site. I just enabled DEFLATE compression using the Website Optimize feature of cPanel and it seems to have helped. This test confirmed that it was not set up before and is now.

    I will look into server-side processing and Scroller.

  • allanallan Posts: 61,972Questions: 1Answers: 10,160 Site admin

    Oops - forgot to push it to GitHub. It is there now.

    Good to hear that gzipping the content helped!

    Allan

Sign In or Register to comment.