Closed GoogleCodeExporter closed 9 years ago
Hartmut,
Thanks for the detailed notes. I was actually looking at this yesterday as
well. The
funny thing is that if I include the top level files under "modules-debug"
followed
by the load_skin.js in the host html file, there is no error. The
SmartGgwtDebug
module is essentially doing the same thing, except its using GWT's script
injection.
So I'm a little baffled. Furthermore, SmartGwtDebug used to work a while ago
and I'm
not sure what quite changed that is causing the module-debug script's injected
by GWT
to cause the individual script includes to be loaded out of order /
asynchronously.
Please keep me posted if you are able to narrow down this issue. I would prefer
to
include the modules-debug files as its easier to maintain when ,say, SC adds
new
classes etc.
Original comment by sanjiv.j...@gmail.com
on 21 Feb 2009 at 6:04
I guess if you don't include the modules-debug files in the host HTML file
directly
using <script> tags, but you do it instead using script injection /
document.write,
it won't work either. It has probably something to do with the order in which IE
processes multiple levels of script injection, i.e. when a file that has been
loaded
via script injection itself loads a file using script injection, which is what
happens here when you use GWT.
My guess is that IE initially loads all files directly included via <script>,
then
all files loaded via script injection level 1, then all files loaded via script
injection level 2 and so on if you know what I mean. I'll verify that with
HttpWatch
and let you know whether my guess is correct.
Original comment by Hartmut....@gmail.com
on 21 Feb 2009 at 6:22
I have gone ahead and updated the SmartClientDebug module itself with the
individual
files. Having a separate one for IE seemed overkill and this version will work
with
all browsers as well.
I'll keep an eye on when new SC files are added and will run your utility. Will
also
regenerate it before official releases. Thanks a lot!
Original comment by sanjiv.j...@gmail.com
on 22 Feb 2009 at 6:23
Here's an interesting blog post about how IE and FF behave differently when
handling
nested script includes using document.write:
http://flouri.sh/2007/9/23/nesting-document-write
I think the safest way to guarantee that all scripts are loaded in the same
order in
which they're listed in the gwt modules is: Don't use nested includes with
document.write yourself, but specify all include scripts in *.gwt.xml module
files at
compile time. GWT's compiler will create a flat list of files to include and do
non-nested includes via document.write, which apparently works in all browsers.
Original comment by Hartmut....@gmail.com
on 22 Feb 2009 at 7:19
Since version 3.1 the content of SmartClientDebug.gwt.xml has been reverted to
include the modules-debug/ISC_* instead of the individual files.
Therefore the bug is still present as described by Hartmut and should be
reopened.
Original comment by ste.mai...@gmail.com
on 26 Feb 2013 at 11:51
Thanks for pointing this out. This has been fixed for the next nightly builds
of 3.1 and 4.0 versions.
Original comment by smartgwt...@gmail.com
on 27 Feb 2013 at 7:24
Original issue reported on code.google.com by
Hartmut....@gmail.com
on 21 Feb 2009 at 5:55Attachments: