• Resolved jahlrep

    (@jahlrep)


    Hi Tobias

    to speed up the loading time of big tables, would it be possible to transfer the data from the server to the client without class names? Just to reduce the amount of data?

    To compare. This is the tablepress version:
    test.sti-bearings.com/tabellen-test

    Here is the same table. But it loads much faster:
    https://www.slf-fraureuth.de/stocklist
    (press the <suche> button to get the same table)

    On this page they just transfer the pure html table tags.
    Would something similar be possible with tablepress?

    Thanks for looking into this,
    J?rg

Viewing 1 replies (of 1 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    Unfortunately, there’s no direct solution to this in TablePress, you would need a little bit of custom PHP code. For example, you could hook into the tablepress_cell_css_class and tablepress_row_css_class filter hooks (defined in classes/class-render.php) to remove all CSS classes from the HTML code on a per-table basis.
    This should only be a small piece of PHP code, like

    add_filter( 'tablepress_row_css_class', '__return_empty_string' );
    add_filter( 'tablepress_cell_css_class', '__return_empty_string' );

    e.g. in your theme’s “functions.php” file.

    Regards,
    Tobias

Viewing 1 replies (of 1 total)
  • The topic ‘Loading speed of big tables’ is closed to new replies.