[Greasemonkey] Script scoping
Scott R. Turner
srt at aero.org
Tue May 3 13:47:37 EDT 2005
On Tue, 3 May 2005, Edward Lee wrote:
> On 5/3/05, Scott R. Turner <srt at aero.org> wrote:
>> I'm not sure what you mean here. By the time onload occurs, all other
>> scripts ought to be loaded and their functions available.
>
> That's true, but what if A depends on B and B depends on C? Right now
> things work fine if it's just A depends on C and B depends on C
> because C would just have to load first while the others delay their
> evaluation.
I don't think the original poster was asking anything about order of
evaluation; just that he wanted functions from other scripts available
when his script ran. I believe he can accomplish that by hanging his
script onto "onload".
-- Scott
More information about the Greasemonkey
mailing list