标签: javascript firefox-addon
由于注入延迟,发送到内容脚本的后台脚本可能会丢失吗?
例如:
"content_scripts":[ { "matches":["<all_urls>"], "run_at":"document_idle", "js":["content_script.js"] } ]
run_at option determines when the scripts specified in js are injected.
run_at
In web browsers, messages are added anytime an event occurs and there is an event listener attached to it. If there is no listener, the event is lost.