Yeah, it's just a timer of 1ms as far as I remember, but the browser will
put the request at the back of the queue so unless your other js leapfrogs
it by doing the same trick, it should run after everything else.
The screen will be rendered before it runs, which may or may not be a
problem or an advantage (you can display a progress message, for example)

Ian

http://examples.roughian.com


2009/6/2 eggsy <[email protected]>

>
> Hi Ian,
>
> Many thanks for the reply.
>
> I'm assuming you mean the GWT DeferredCommand object.
>
> I'll have to take a look into how that is utilised.
>
> Eggsy
>
> On Jun 2, 10:55 am, Ian Bambury <[email protected]> wrote:
> > Have you ensured that the gwt script tag occurs after everything else?
> > Or tried a deferred command in the onModuleLoad which calls a routine to
> do
> > everything currently in the onModuleLoad ? That should be queued until
> > everything else is done.If your other js is deferring stuff too, then a
> > deferred command in a deferred command would jump it to the end of the
> queue
> > again, or failing that, a timer.
> >
> > Ian
> >
> > http://examples.roughian.com
> >
> > 2009/6/2 eggsy84 <[email protected]>
> >
> >
> >
> > > Hi all,
> >
> > > Using the GWT EntryPoint is there anyway to make sure that the entry
> > > point isn't invoked until the rest of the document is loaded?
> >
> > > I have made a widget that can be shown on various pages and sometimes
> > > due to one thing or another the widget fails to render but when this
> > > happens it stalls the browser and doesn't continue to render the rest
> > > of the document?
> >
> > > Is there anyway to not invoke onModuleLoad until the document has
> > > loaded?
> >
> > > Many thanks,
> >
> > > Eggsy
> >
> > > PS. I'm aware that our architecture should have some form of timeout
> > > really but at the moment this is the most expedient way.
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to