Hi Matt You said the script is in the header (although it didn't appear in your snippet) - if that's the case, then the script will delay loading the rest of the page until the script has finished loading, i.e. only when the script is fully loaded the .gif will load and a microsecond later your app will run and replace the gif.
You need to either mark the script as async or put it after the .gif file. John On 26/03/2012 18:26, "slah" <slach...@gmail.com> wrote: >Hi, >well I removed the myapp.js file and the loading.gif appears correctly. >the build version is about 1.1 MB so it won't load that fast especially >for >the 1st loading after a fresh rebuild. > >I wonder if the script myapp.js is not overriding the body of the >index.html >as soon as the loader starts loading the application? > >Regards > > >matt082606 wrote >> >> Ok there are two things that come to mind. 1) the build version is going >> to >> be much faster and may not have time to show loading. 2) the location of >> the loading.gif file is not correct and is broken. >> >> Can you remove the js and just load an html file pointing to the >> loading.gif, and see if it is showing up at all. If not check that the >> loading.gif file is properly copied to the server for the build version. >> On Mar 26, 2012 8:49 AM, "slah" <slachtar@> wrote: >> >>> hello, >>> my index.html include of course the script/myapp.js file. (see the >>>header >>> definition below). >>> >>> <head> >>> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> >>> >>> <title>My app</title> >>> >>> </head> >>> >>> The problem is that I added a loading.gif icon in the body but can see >>>it >>> in >>> the source version but not in the build version. >>> >>> Any clue please? >>> >>> Regards >>> >>> -- >>> View this message in context: >>> http://qooxdoo.678.n2.nabble.com/preload-screen-tp7397080p7405773.html >>> Sent from the qooxdoo mailing list archive at Nabble.com. >>> >>> >>> >>>------------------------------------------------------------------------ >>>------ >>> This SF email is sponsosred by: >>> Try Windows Azure free for 90 days Click Here >>> http://p.sf.net/sfu/sfd2d-msazure >>> _______________________________________________ >>> qooxdoo-devel mailing list >>> qooxdoo-devel@.sourceforge >>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel >>> >> >> >>------------------------------------------------------------------------- >>----- >> This SF email is sponsosred by: >> Try Windows Azure free for 90 days Click Here >> http://p.sf.net/sfu/sfd2d-msazure >> _______________________________________________ >> qooxdoo-devel mailing list >> qooxdoo-devel@.sourceforge >> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel >> > > >-- >View this message in context: >http://qooxdoo.678.n2.nabble.com/preload-screen-tp7397080p7406773.html >Sent from the qooxdoo mailing list archive at Nabble.com. > >-------------------------------------------------------------------------- >---- >This SF email is sponsosred by: >Try Windows Azure free for 90 days Click Here >http://p.sf.net/sfu/sfd2d-msazure >_______________________________________________ >qooxdoo-devel mailing list >qooxdoo-devel@lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel