but your example also calls it after it. On Tue, Nov 10, 2009 at 5:20 AM, electronbender <[email protected]>wrote:
> > I am calling myfunc inside the onload function. > > On Nov 10, 1:44 pm, batman42ca <[email protected]> wrote: > > Asset is asynchronous. This means that when you call myfunc(foo) > > outside the call to Asset.javascript, there is no guarantee that > > file1.js has loaded yet. > > > > When you call myfunc() inside the onload() function, that is where > > it's guaranteed that file1.js has been loaded. >
