I am having some problem with the order of javascript execution when I use the content script to inject some javascript into the HTML page:
This is my HTML page I us
There are entire libraries dedicated to achieving what you are trying to do, as each browser seems to add its own share of bugs. Have a look at something like HeadJS, or if already using jQuery what joe said.