• Resolved frisco

    (@frisco)


    Great plugin. You are to be commended for your ongoing development, improvements, and support. Top notch among WP plugins here.

    I notice that TablePress loads its stylesheets on every page, and I think WP-Table Reloaded loaded JS on every page, even if no table was on the page.

    How about loading TablePress components (styles, JS, etc) conditionally if there’s a table on the page? Otherwise, it’s just unnecessary page weight.

    https://www.ads-software.com/extend/plugins/tablepress/

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

    (@tobiasbg)

    Hi,

    thanks for the suggestion.

    That unfortunately will also not really work, as that also does not catch every possibility: For example, what if a table has been included via the template tag function? That would not be caught by this code, so that the styling would not be loaded…

    Note that I’ll be making CSS loading better in the next release by combining default CSS and “Custom CSS”. So, there will always only be one CSS file from TablePress, which can be cached by the browser very easily.

    Regards,
    Tobias

Viewing 16 replies (of 16 total)
  • The topic ‘Conditionally load TablePress stylesheets’ is closed to new replies.