Kameleoon shrinks script size by 30% by switching to TypeScript, ensuring seamless, fast user experience
At Kameleoon, we are committed to continually improving our A/B testing and personalization platform to deepen the benefits for our customers.
As part of this we have just released a major update to our solution, reinforcing its position as the best-performing optimization tool on the market.
1 Moving from JavaScript to TypeScript
Central to the new release is a switch from JavaScript to TypeScript within our engine code, which has also been substantially rewritten, adding new features and optimizing existing ones.
Designed for enterprise applications, TypeScript is an open-source programming language that adds functionality to JavaScript. TypeScript programs compile to JavaScript for both client-side and server-side execution.
2 The benefits of switching to TypeScript
Switching to TypeScript delivers multiple benefits for our customers:
30% smaller scripts to improve execution speed
Scripts deployed on visitor devices by sites using Kameleoon to deliver testing and personalization are now 30% smaller, at 30.7KB – under half the size of some rivals. This improves execution speed and the visitor experience, enabling brands to deliver seamless personalization and testing without any performance impact on visitors.
More robust code to avoid bugs
The nature of TypeScript makes it easier to write bug free software, so the robustness and quality of the code within the platform has also increased. At the same time everything within our engine was modularized and rewritten to further improve performance.
Reduced development time
Adding new code to the engine is now easier than ever, which means that development time for important features will be greatly reduced - especially around custom developments for clients.
3 Further improvements to Kameleoon
The latest update to Kameleoon also brings multiple customer benefits:
Move to beacon calls
This drastically reduces the number of network calls, improving performance for clients who run a large number of experiments and personalizations.
Flexible consent management
Clients can easily define different levels of consent to respect privacy and meet all possible use cases and constraints under regulations such as the GDPR and CCPA. Read more about this feature in our blog post.
The latest update follows the introduction of a series of new features, including our Chrome Extension.
As always all existing Kameleoon users will be automatically upgraded to the latest version of the platform - if you have any queries please contact your customer success manager or read our technical documentation.