During A/B testing and conversion optimization work, third-party scripts often pollute the global window scope. This can cause conflicts, memory leaks, or unexpected behavior in your experiments. Here’s an enhanced approach to quickly identify what’s been added to the global namespace. The Problem When running experimentation platforms like GrowthBook, Optimizely, or Convert, you need to […]
JavaScript
Building the Ultimate A/B Testing Developer Experience
How I transformed experimentation development from tedious manual processes into a seamless, production-integrated workflow As developers, we’ve all been there: copying code between environments, manually refreshing browsers, juggling multiple build processes, and wrestling with deployment pipelines just to test a simple button color change. After years of building A/B tests and personalization campaigns across multiple […]
How To List User Defined Window Globals with Javascript
There might be occasions where you want to inspect what is defined on the Window object, for instance is jQuery or Google Analytics loaded, or are there third party scripts that pollute your global Window scope? In that case this script might come in handy. If you run it in your browsers console, it will […]
How to simulate clicks on non-supported HTML elements
Did you know that there are (‘non-html’) elements that do not support the HTMLElement.click() method? Then how do you simulate a click?
Adding DOM Elements LIKE A BOSS
In my AB testing Framework I have a method that creates DOM nodes, sets their properties and attributes, and adds them to the DOM for me. Since in 90% of all the tests we run, we need one or more custom elements, I decided to create a function that does all that for me. The […]
My Secret to Super Fast AB Test Loading
Since a few years, browsers have a great API built in that we can use to achieve super fast loading of our test code: Mutation Observer.