Minify the zopim script

Answered

21 Comments

  • Ramin Shokrizadeh
    Zendesk Product Manager

    Hi there,

    We actually do minify the widget code. We do other things to reduce the footprint of the widget like:

    • We gzip our script. Over the wire, the download size of our script is 211KB and it’s 856KB when the browser unzips it.
    • We package all our icon assets, CSS, and font file into one package, saving the overhead of extra HTTP requests
    • We do take advantage of caching. The actual script (211KB) never expires, and the request for version-check is cached for 4 hours. So for end users/site visitors, the widget will keep reusing cached assets after the first load.
    • We do utilize CDNs for our assets. This combined with our caching policy makes all Zopim widget users in the same region to have a very high chance of sharing resources closest to them geographically.

    Hope that clears things up for you.

    -Ramin

    0
  • Dexecure

    Hey this is the script included in this very page - https://v2.zopim.com/bin/v/widget_v2.157.js

    Which can be minified further..

    1
  • MT

    Does Dexecure have a point? Can that script be minified further? 

    0
  • Dexecure

    Yup, it can be..48 KB smaller to be exact! Given that thousands of companies are using Zopim on their websites who will have 1000s of customers of their own and this much extra data is downloaded for each one of them - this is such a major issue! I dont know this has not been reported / fixed already!!

    0
  • Ramin Shokrizadeh
    Zendesk Product Manager

    Hi MT & Dexecure,

    Optimising the widget's performance is an ongoing initiative and the team will be constantly making tweaks to make things run faster and have a smaller footprint. This can include further minifying of the widget code.

    Thanks,
    Ramin

     

    0
  • Yann Weyer

    Hi,

    I also have the same wish, I don't get why it isn't minified already :/

    See also related ticket: https://chat.zendesk.com/hc/fr/community/posts/210314557-pagespeed-insights (adressing not only minification but also browser caching)

    0
  • Dexecure

    I have started using Slaask (slaask.com) which is much lighter on your page. I had some perf issues with them too, but they were quick to make a fix on their side. 

    0
  • Sebastian Vizcaino

    I cannot believe, this issue have not been addressed yet. Google audits report this issue as well.

    As you see on the report the minification would reduce 14% the file size

    1
  • Ramin Shokrizadeh
    Zendesk Product Manager

    Thanks for the feedback Sebastian. Further minifying the widget actually created some issues for the widget that will take longer to resolve. We are continuing to work on making those changes and will share when we have made significant updates.

    For customers using the Web Widget and Chat, the results are slightly better than the standalone Chat widget today.

    0
  • Chris Vanden Berghe

    What is the status of the above, please? This is honestly not rocket science...

    The impact is large as Google uses PageSpeeds insights as one vector in its ranking algorithm. Because of that ALL of your customers will be ranked slightly lower due to this issue.

    Maybe you should make it more of priority? We definitely did: if this is isn't resolved by the end of October then we'll cancel our Zopim subscriptions.

    0
  • Ramin Shokrizadeh
    Zendesk Product Manager

    Hi Chris,

    We are doing incremental work to allow us to do this, minifying it further actually breaks our exception handling error logs which is important for us to troubleshoot issues. Understand that the team is still planning on incrementally reducing the footprint of the widget but we are not committing to timelines right now.

    -Ramin

    0
  • Cloud Services

    No make sense. Two years of work and until now the problem has not been solved. Making some tests of the impact that the zopim widget generates, here are the results:

    WITH ZOPIM

    - GTMETRIX
    PageSpeed Score (93%)
    YSlow Score (86%)
    - GOOGLE
    Pagespeed (67%)


    REMOVING ZOPIM

    - GTMETRIX
    PageSpeed Score (96%)
    YSlow Score (87%)
    - GOOGLE
    Pagespeed (83%)

    2
  • Ademir

    They don't want to minify or don't know. :(

    The Widget takes about 3 minutos to load.

    0
  • Ryan Thompson

    Having the same problem here, we are trying to optimise our website and the include JS on every page is giving me problems. It's so frustrating that a live chat script which is billed for can't achieve something that other chat's already have.

    3 Years ago someone posted asking for this to be looked into and as of today there still is no minification of your script. We are moving to another live chat provider, one who listens to customer problems and actually does something about them. Also the comment "We actually do minify the widget code." You don't! - https://en.wikipedia.org/wiki/Minification_(programming) if you minified it we wouldn't be posting here and google wouldn't be complaining with the below:

    URL
    Size (KB)
    Potential Savings (KB)
    …v/widget_v2.286.js (v2.zopim.com)
    246 KB
    34 KB

    I wonder how many customers you could have saved by making some pretty basic performance changes.

    2
  • Francisco Zanatta

    Should I be satisfied hearing that you guys don't put this in production because this breaks your error handling logs?

    Let me tell every single client that uses my product that the page is slower because you guys can't figure out a way to adapt your asset build pipeline.

    I'm seriously looking forward other chat options, since a demand that is so basic as Web Performance 101 can't be implemented in a product that people pay and trust.

    Thousands of engineers, hundreds of PO's, 239KB asset.

     

     

     

    1
  • Gert Snijder

    Omg it's still so bad and slow.. I am going to look for another chat solution. Can anyone recommend something FAST?

    3
  • Marc Schipperheyn

    I have recommended removing Zendesk from our site because of it's terrible performance and the unwillingness to make this websites 101 level fix.

    0
  • Marc Schipperheyn

    So, apparently there IS a minified version:

    //v2.zopim.com/?key

    Where key is your id code.

    0
  • Giulio Orsi

    Hi, is there a solution to minify zopim js widget?

    2
  • Scott Beale

    We are also having performance issues with the Zendesk Chat widget and would love to know if there is an update on this.

    1
  • Lenni Gregersen

    I was looking to optimize our site and used the Chrome tool Coverage, and I took notice that https://v2.zopim.com/bin/v/widget_v2.329.js is 1MB large, and 537kb of this script is unused by the browser. That is indeed a huge waste of bandwidth and loadtime.

    0

Please sign in to leave a comment.

Powered by Zendesk