Addon only working on testing. Window.onload not working

I used console.log(‘Hi!’); to try and figure out where it’s breaking. It looks like my function is being called before the page finished loading the kanban board. Is there a way to delay it until it’s fully loaded?