• Skip to main content
  • Skip to footer

recoveryArea

Content Management for Everyone!

  • About me
  • Blog

JavaScript

Notify Enter Viewport the proper way: Intersection Observer.

4 February 2020 By Pascal Louwes

intersection observer code

In previous articles I have written about how to track elements when they enter or leave the browsers viewport. The reason why you might want to track this is when you are doing a test on an element that is outside the viewport on page initialisation, you don’t want to count this as a visitor […]

Filed Under: AB Testing, JavaScript

Notify Enter Viewport

21 June 2018 By Pascal Louwes

Sometimes we are testing a page element or component that, when the page has loaded, lies outside of the viewport. This has the simple consequence that you should not count this page load as a visitor to your test. Only when the element you are testing scrolls into view, the visitor can be added to […]

Filed Under: AB Testing, JavaScript

AB Test jQuery Performance Cheat Sheet

14 October 2016 By Pascal Louwes

cheating

If you write AB tests with jQuery you have to make sure you write your code as optimised as possible. Every millisecond you shave off results in less chance of unwanted repaint or reflow flickers. Update: Tip number 1: Do NOT use jQuery! Why wait for a library to load, when vanilla JS nowadays does […]

Filed Under: AB Testing, JavaScript, Performance

Track That!

7 February 2016 By Pascal Louwes

This function tracks every event with all its attributes in the div that’s set in the caller function. Handy if you need custom tracking for your AB test.

Filed Under: JavaScript

A smarter console.info

9 February 2011 By Pascal Louwes

Here is a little piece of code you can use in your project for slightly smarter console messages. Objects and arrays are handled differently when logged to the console than strings. Firebug gives you a stringified version of the object while console.dir gives you an expandable object. Both give you the expandable object in Chrome. […]

Filed Under: JavaScript

  • « Go to Previous Page
  • Page 1
  • Page 2

Footer

Office

recoveryArea
Nijverheidstraat 11-1
7511 JM Enschede
The Netherlands

KvK: 65594940

Mission

Building a more elegant, accessible internet through precise experimentation and performance engineering. Moving toward an empathic, sustainable future where technology genuinely serves people.

Read my full profile

Get in touch

  • GitHub
  • LinkedIn
  • Twitter

Copyright © 2025 · From recoveryArea with