WordPress.org

Ready to get started?Download WordPress

Forums

Autoptimize
[resolved] Confict with WP SlimStat plugin (6 posts)

  1. denied123
    Member
    Posted 1 year ago #

    There seems to be an issue with WP SlimStat since when its .js is minified (wp-slimstat.js) an error appears in the java console.

    Error: TypeError: SlimStat.send_to_server(...) is not a function

    This doesn't happen when the said .js file is excluded from being minified. Is it possible to take a look and see if it's possible to fix the conflict ?

    Thanks in advance.

    http://wordpress.org/extend/plugins/autoptimize/

  2. futtta
    Member
    Plugin Author

    Posted 1 year ago #

    I'm afraid not all javascript can be aggregated just like that, hence the inclusion of the "Exclude scripts from autoptimize" input field in the Autoptimize admin pages.

    So I would indeed advise you to exclude that .js-file from being aggregated & minified :-)

  3. camu
    Member
    Posted 1 year ago #

    Like futtta said, some javascripts don't really like to be minified (also because my js is ALREADY minified).

  4. denied123
    Member
    Posted 1 year ago #

    Yeap, but since WP Minify didn't have any problems with it I assume there must be a workaround. Perhaps combining it without minifying it ?

  5. futtta
    Member
    Plugin Author

    Posted 1 year ago #

    it's all (combining + minifying) or nothing I'm afraid. Just exclude it :-p

  6. denied123
    Member
    Posted 1 year ago #

    Will do, thanks for the reply :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.