WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Confict with WP SlimStat plugin

[Resolved] Confict with WP SlimStat plugin

  • denied123
    Member

    @denied123

    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/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Frank Goossens
    Participant

    @futtta

    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 🙂

    Jason Crouse
    Participant

    @coolmann

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

    denied123
    Member

    @denied123

    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 ?

    Plugin Author Frank Goossens
    Participant

    @futtta

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

    denied123
    Member

    @denied123

    Will do, thanks for the reply 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] Confict with WP SlimStat plugin’ is closed to new replies.