On 8/1/2012 1:47 PM, eriq wrote:
> The "runAt" option specifies the earliest time that the script injection
> can happen.
> So, if you inject at "document_end", then you can be guaranteed that the
> DOM will be complete.
>
> Injecting at "document_start" essentially means that the script will get
> injected at the first possible opportunity (maybe while the DOM is still
> loading).
> It is pretty common for small DOMs to get loaded before the script has
> an opportunity to get injected.
My understanding is the behavior here is a bit different between a
declared content script and .executeScript, in that for a declared
content script, it'll run exactly when stated, whereas .executeScript
you're specifying it'll run "when stated, or now if that already happened"