How do I run a script right after the head is loaded, but before the DOM?

Posted by LLer on Stack Overflow See other posts from Stack Overflow or by LLer
Published on 2010-06-05T03:37:50Z Indexed on 2010/06/05 9:52 UTC
Read the original article Hit count: 152

Filed under:
|

Making a Google Chrome extension and need to run a script after the head is loaded, because there are scripts in the head and I need them to run. And before the DOM is loaded, because there's an inlined script in there that I need to beat.

How would I do this? How do I detect when head loads?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about google-chrome