SyntaxFix
Write A Post
Hire A Developer
Questions
If it needs to run on the onload event of the page, meaning that the document and all its assets have loaded, this needs to be in a content script embedded in each page for which you wish to track onload.
onload