If you have Chat enabled in your Web Widget and want to optimize for page performance, you can consider using the connectOnPageLoad api. This should decrease the time taken to display the widget launcher and improve page load scores in tools like Google Lighthouse. Learn more.
What is the best tool to monitor page load speed for my website?
We recommend using Google’s Lighthouse tool that is available by default in the audit tab of developer tools. Lighthouse has very good coverage of new features available in modern web browsers like Google Chrome. We rely on features like HTTP/2 multiplexing to optimise the Web Widget and Lighthouse will take multiplexing into account when calculating the performance of a web page with the Widget embedded.
Yes, the Web Widget assets are individually versioned and long-term cached for up to a year. They’re cached both privately on end-user browsers, and publicly on CDN edge servers. Some assets required for the Widget are unlikely to change between Widget versions, and will be cached independently. This means those assets will be retrieved faster from cache the next time the browser needs them. For example, the country code flag icons utilised in Talk, or the notification sounds associated with Chat.
We are currently prioritizing investment in performance and expect to deliver some major improvements in H1 2020.
- As a first step, we recently released the connectOnPageLoad setting to enable you to optimize for performance when you have Chat enabled. Learn more.
- We are also making progress on code-splitting, so that only UI assets for the channels you have enabled are sent to the browser. We have already split Talk and Help Center, and are working next on Support, Chat and Answer Bot.
- We also intend to dynamically load as much of the Web Widget as possible so that your customers only download the parts of the Web Widget that they are actively using.
- Next we have identified several ways to streamline the sequence of the assets we send and load on the browser so as to display the launcher as quickly as possible.
Please sign in to leave a comment.