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

    (@meitar)

    The reason it currently loads on every page is to support any table, not just those added with the shortcode, through custom class names provided on the plugin’s settings screen. You can certainly write a custom filter function to prevent wp_enqueue_style from loading DataTables on some pages.

Viewing 1 replies (of 1 total)
  • The topic ‘Load CSS/JS files only on pages with shortcode’ is closed to new replies.