Parts of javascript not working in issue navigator

I tried your sugesstion and the breakpoint was reached when I loaded the page but it didn’t load when switching between issues.

Edit: There is also something I didn’t notice before. When I use your code and I switch between issue A and B the javascript won’t load but when I then switch from B back to A the javascript does work. So each issue needs to load a second time before it detects my javascript.

Edit 2: I removed PageLoad from the code and only left PanelRefresh. This gives the exact same results in that it only loads my javascript after switching back and fort between issues.