I've made a script that deletes a few items. It works fine when I press F5 but doesn't run when the page is first loaded. This is a company internal web-site so I can't offer it to everyone to try. I've tried on a minimal script, just 1 line with alert('H'); - just the same.
However I open the page, right-click on link - open in new tab, right-click open in new window, copy the link and paste in a new window - they all don't run the script. Press F5 and it runs.
Any help appreciated.