If by extension you mean the content script, then the most you can do is set the "run_at": "document_start" property in the manifest, which means
"[content script] files are entered after any files from css, but before any other DOM is built or any other script is run."
(more details) .
You cannot contact your background page before the page starts loading, although there is no synchronous messaging.
source share