• Resolved nonobio

    (@nonobio)


    Hello ??

    My table with first column fixed (with dedicated plugin) doesn’t work on mobile when the minifying option is activate in my plugin WP-Optimize : the first column isn’t fixed and so i haven’t either the horizontal scroll.

    If i disable the javascript minifying option in WP-optimize : table works fine.

    What should i do ? Maybe exclude tablepress of the minifying ?
    I activate the minifying after readings recommandations about it…

    This is the wp-optimize setting screen concerned :

    Wp-Opimize Javascript minifying setting

    Thanks

    • This topic was modified 4 years, 4 months ago by nonobio.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Yes, here, I would recommend to exclude the jQuery JS library and the TablePress JS files from minification (they are already minified). How this is done depends on the minification plugin.

    Regards,
    Tobias

    Thread Starter nonobio

    (@nonobio)

    Thanks Tobias for your quick reply.

    Ok.

    There is an “Exclude JavaScript from processing” in WP-optimize minifying settings, but i don’t know what to type to exclude TablePress.

    Can you help me ?

    • This reply was modified 4 years, 4 months ago by nonobio.
    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    please try adding the files

    /wp-includes/js/jquery/jquery.js
    /wp-content/plugins/tablepress/js/jquery.datatables.min.js
    /wp-content/plugins/tablepress-datatables-fixedcolumns/js/dataTables.fixedColumns.min.js

    Regards,
    Tobias

    Thread Starter nonobio

    (@nonobio)

    It works ??

    Thanks.

    But the /wp-includes/js/jquery/jquery.js seems to be more general and not specific to tablepress (i don’t know coding…) : if yes, does it mean all javascript will be exclude and so the javascript monifying function is disable ?

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    you could also try without excluding jQuery, but it might be safer with it excluded.
    I don’t think excluding it will have ill effects on other scripts.

    Regards,
    Tobias

    Thread Starter nonobio

    (@nonobio)

    Ok, i leaved it as you recommend ?? .

    Thanks a lot. Have a nice day!

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! ?? Good to hear that this helped!

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Minifying JavaScript cause issue with TablePress FixedColumn’ is closed to new replies.