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

    (@tobiasbg)

    Hi,

    the JS file for the sorting (the DataTables JavaScript library) is already minified in TablePress, and TablePress only contains the minified version.

    Are you sure the the problem originates from the minification, and not maybe from a conflict that the JS of another plugin creates?

    Regards,
    Tobias

    Thread Starter dm5k

    (@dm5k)

    I know because when I turn better wordpress minify off the table sorting works fine. Better wordpress minify gives me a “Scripts to be ignored (not minified)” option but I don’t know where to look to find it..

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    then that likely means that some other JS breaks during the minification, and that after that the remaining JS on the page (like the DataTables scripts) are not executed by the browser.

    To confirm this assumption, please temporary deactivate all other plugins, except TablePress and Better WP Minify (and don’t forget to clear the minify cache), to see if the problem persists.

    The TablePress JS file is located at wp-content/plugins/tablepress/js/jquery.datatables.min.js if you want to exclude that. But likely that’s not going to help, so I suggest that you try my suggestion about the plugins, first.

    Regards,
    Tobias

    Thread Starter dm5k

    (@dm5k)

    Thanks for the help so far. I tried deactivating all other plugins besides Tablepress and Better WP minify but it didn’t work. I also tried adding content/plugins/tablepress/js/jquery.datatables.min.js to the ignore list and you were right that didn’t work either :/

    Thread Starter dm5k

    (@dm5k)

    I noticed there is a disable “Minify JS files automatically?” for my Better WP Minify plugin. So I unchecked it and now your plugin works perfectly. I rated you 5 stars thank you =)

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    awesome, that’s great news! Very likely, the Better WP Minify plugins does some minification that breaks the JS. In that case it’s better to just use the original version.
    Great to heat that you were able to fix this!

    And thanks for rating TablePress, I really appreciate it!

    Best wishes,
    Tobias

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Minify issue’ is closed to new replies.