Skip to main content

Page Performance

Leadoo bots are much smaller than many other embedded tools you may be using on your site. We take extra steps to ensure that the bots themselves are small (transfer-size wise) and don't impact page load performance. We also ensure that our caching rules are flexible enough to allow for caching on the browser-side so that subsequent navigations through your site don't incur extra transfer costs in downloading our bot(s) more than once.

Leadoo uses a CDN (Content Distribution Network) to store cached copies of our bots close to all of our potential users.

Due to these features, Leadoo strongly recommends against attempting to improve page performance by including third party tools or custom tweaks to improve the performance of our bots. Doing so will, in most cases, result in a less efficient setup or our bots simply failing to run.

Potential Issues

There are a number of common mistakes that we've seen in terms of how our bots have been embedded.

Cloudflare's Rocket Loader

Cloudflare provides a page-rewriting service that uses a tool called Rocket Loader to bundle scripts together so that they load more "efficiently". This tool disregards internal script logic in terms of how its positioning within the page might be important - as such it can easily break scripts such as Leadoo's.

Leadoo's bots do not support Rocket Loader - you must configure it to ignore our scripts or simply disable it.

To disable Rocket Loader for a single script, such as our chat bot (for example), add data-cfasync="false" to the <script> element:

<script async src="https://bot.leadoo.com/bot/chat.js?code=abc123" data-cfasync="false"></script>

You can read more about this on Cloudflare's support page.

WP Rocket

The WP Rocket Wordpress plugin is a caching and optimisation system very similar to that of Cloudflare, and as such causes significant issues for Leadoo bots due to its disregard for scripts and their locations within the DOM.

Leadoo's bots do not support WP Rocket - you must configure it to ignore our scripts or simply disable it.

To disable WP Rocket on Leadoo assets, please follow WP Rocket's instructions. Add an exclusion rule for leadoo.com, so that all Leadoo assets are removed from WP Rocket's processing.

Custom Cache-Busting

Cache-busting is the act of changing a script URL dynamically (using a random number) so that a new copy of the resource is fetched with each page load. This provides no real benefit, and only serves to hurt performance. Do not add custom query parameters to Leadoo bot scripts.