Hello @Jan Borowiak , the event handlers not being ran may be caused by B2C UI overriding them to ensure proper function. As a workaround, try using $(document ).ready()
$( document ).ready(function() {
console.log( "ready!" );
});
Let us know if you need additional assistance. If the answer was helpful, please accept it and rate it so that others facing similar issues can more easily find a solution.