WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Slow data loading => Deferred rendering

[Resolved] Slow data loading => Deferred rendering

  • Hi Tobias

    Hope you are well.

    I have the same problem like others, with a lot of data to load, it slows down performance.

    But I think I found a solution in the script you are using: Deferred rendering seems to speed up loading the table, as it shows only the part of the table which will be displayed.

    “Make sure you aren’t initialising the table in a display:none element
    2. If you enable scrolling again, then make sure you also use Scroller and deferred rendering:
    http://datatables.net/release-datatables/extras/Scroller/index.html

    3. If you enable pagination, make sure you enable deferred rendering

    See also http://datatables.net/faqs#speed

    “bDeferRender
    Hide details
    Deferred rendering can provide DataTables with a huge speed boost when you are using an Ajax or JS data source for the table. This option, when set to true, will cause DataTables to defer the creation of the table elements for each row until they are needed for a draw – saving a significant amount of time.”

    This would be the ultimate solution
    http://datatables.net/release-datatables/extras/Scroller/index.html
    A table with 2500 rows x 5 columns = 12’500 cells loads in milliseconds!

    Ans this is the initalisation code:
    $(document).ready(function() {
    var oTable = $(‘#example’).dataTable( {
    “sScrollY”: “200px”,
    “sAjaxSource”: “media/data/2500.txt”,
    “sDom”: “frtiS”,
    “bDeferRender”: true
    } );
    } );

    This would be soooo great!!!! 🙂

    Best regards,

    Luigi

    http://wordpress.org/extend/plugins/tablepress/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author TobiasBg
    Participant

    @tobiasbg

    Hi Luigi,

    I know, this would be great, but TablePress does currently not support delivering its data as an AJAX or JS source to DataTables 🙁
    I just haven’t found a good way to implement this. Sorry to disappoint you.

    Regards,
    Tobias

    Hi Tobias,

    Oh, I see. I have no idea what is going behind the plugin and hiw it works.

    As I hear from your answer this would be a great amount of work for you to implement. But maybe you will find a solution in the future 😉

    Regards,

    Luigi

    Plugin Author TobiasBg
    Participant

    @tobiasbg

    Hi,

    yes, this would require major changes in the internals of the plugin – and I don’t really know how to approach those.
    But yes, this is on my list, and maybe I can find a solution in the future 🙂

    Best wishes,
    Tobias

    Hi,

    I know that you have put already so much work into it. And changes in the structure of a code requires a lot of work, I guess.

    I am sure you will find a solution. But even w/o the plugin is great, be assured!

    Kind regards

    Luigi

    Plugin Author TobiasBg
    Participant

    @tobiasbg

    Hi,

    good to hear that you like the plugin even without this! 🙂
    I’m also hoping that I can find a solution in the future. We’ll see 🙂

    Best wishes,
    Tobias

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] Slow data loading => Deferred rendering’ is closed to new replies.