I need a way to load a website – something like gBrowser.loadURI, window.location or window.open – but I need to execute some more code AFTER that website has been loaded (and parsed by the browser). The functions I’ve mentioned don’t block execution of my code until the site is fully loaded, but only until it has started loading.
In case it matters: This code will not be part of my/a website, but will be a FireGestures script.
https://developer.mozilla.org/en/Code_snippets/Tabbed_browser#Manipulating_content_of_a_new_tab seems to be what you want. They suggest:
See also docs for
tabbrowserandbrowser.