I am working on my google chrome extension i wanted my script which is in "content_scripts"
to be start executing after the whole dom(window) is loaded , i have tried to add window.onload
on my javascript but it did not work?
Asked
Active
Viewed 43 times
1
-
1use `"run_at": "document_end"` in your manifest. – PG1 Jul 26 '14 at 19:11
-
1@ParagGangil It defaults to `document_idle`, which is even later. To the original poster: it is unclear what you're asking. By default, content scripts inject after the DOM is fully loaded. However, they may be elements that are added dynamically after that. You cannot wait for that to happen, you'll need to watch for added elements if that's the case. – Xan Jul 26 '14 at 23:54
-
@Xan would you please give me a solution window.onload is not working – Jul 27 '14 at 06:28