I notice particularly on PlayBook and Android, that when I load my Enyo apps, it starts off with a blank white screen for a while, presumably while the Enyo stuff is being loaded by webKit. I tried adding some HTML to the body, but all that did was completely screw up the app rendering (using renderInto(body)) .. anyone have any ideas on ways to display something while Enyo is starting up?
0 ·
Comments
That's normally a sliding-pane Enyo 1.0 view.
If I don't move the Enyo load into the body, then the things in the body don't render at all.
Using a CSS background image sounds like the best idea. Just load that CSS early before any other CSS inclusions.
document.getElementsByTagName('html')[0]
Dukiedrew can you elaborate on how you are hiding and showing your enyo kind?
I put the hide() function for the spashscreen in my apps main kinds rendered function.
webOS
Android
Blackberry
Only ones I've tested on.
Two of those aren't even using phonegap so that is not the issue.
One solution is to asyncronously load the Enyo code, but that only really works for a minified application where you can just use async script tags (or put them at the end of your index.html file). If you have to use package.js files, those can currently only be processed in the head part of the HTML page, since they use document.write to add new script and link tags.