Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author kranthitech

    (@kranthitech)

    Hi there,

    Thanks for bringing this to our notice.

    The file is concatenated but not minified as we were finding it difficult to debug on our client websites when they reported any issues with some themes. If you are aware of any techniques to debug (with breakpoints) minified scripts, I would be happy to learn.

    In future versions, we plan to put this script on a CDN for faster loading.

    We just released 9.0.3 excluding the noisy console logs as per your suggestion.

    I hope that addresses your concerns. Request you to mark this thread as resolved if it does.

    Cheers

    Thread Starter lowrybdf

    (@lowrybdf)

    @kranthitech thanks for the reply, I hadn’t updated the plugin — so it’s good to read that the logging has at the very least been dropped from future versions.

    In regards to your debugging case — it’s an extremely poor decision to sacrifice production-quality performance over an edge-case support scenario. There are a few ways you could deal with it:

    • Use a source map: https://developer.mozilla.org/en-US/docs/Tools/Debugger/How_to/Use_a_source_map
    • Ship both a proper client.min.js and a concatenated-only client.js. Add an option in the backend to enable “debug mode” — make sure “debug mode” is disabled by default. When “debug mode” is enabled enqueue client.js and when it’s disabled enqueue client.min.js
    • Sign up for a client-side logging/debugging SaaS
    Plugin Author kranthitech

    (@kranthitech)

    Awesome. Thanks for sharing these links. They are very useful.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Distributable is not minified and is very noisy in the console’ is closed to new replies.