Currently, I am using hook_page_alter()
in my module, but this runs too early. I am loading some fields from the node in template.php so that I can put them into other regions. These fields need JavaScript code from my module, after they are loaded, as the JavaScript depends on the IDs which are generated during the field loading process.
If anyone can help or point me to a list of hooks ordered by the point at which they are run then that would be a great help.