Skip to content
Snippets Groups Projects
Commit 5442dafd authored by aa@chromium.org's avatar aa@chromium.org
Browse files

Add new user script injection point "document_idle" and make it the default.

Semantically, document-idle means "when the DOM is ready and layout has been idle for awhile", or more loosely, "as soon as we get around to it".

Right now this uses a simple heuristic. It injects scripts 200ms after DOMContentLoaded, or immediately after onload, whichever happens first.

BUG=26126
TEST=Manual. Extensions with content scripts should work.

Review URL: http://codereview.chromium.org/339064

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30784 0039d316-1c4b-4281-b951-d872f2087c98
parent 40fc8b76
No related branches found
No related tags found
No related merge requests found
Showing
with 250 additions and 49 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment