coding style - Opera extension -


to put simple: what's fastest way head element in injected opera extension script ? (faster waiting domcontentloaded)

i insert bunch of styles loaded pages, , i'm not waiting domcontentloaded (because user wants see rendered css when page loads, usercss).

so head element (document.getelementsbytagname("head")[0] or document.head) , insert style elements it; works on websites found out doesn't work on wikipedia because can't head element without waiting domcontentloaded.

ps: know opera extensions inserted before other script mean head element isn't loaded when script inserted ? why work on sites ??

afaik, can document.documentelement.appendchild() right away in extension's script. browser should sort things out fine.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -