I have a fairly simple app. built with Flashbuilder 4.6. The app only has a few tabbed dialogs and a navigator, there's not much too it. The actual file sizes are listed below in bytes (output from "ls -l" command).
|-rw-r--r--||1 root||root||3750 May 19 2012 favicon.ico|
|-rw-r--r--||1 root||root||327044 Jun 8 2012 framework_220.127.116.1101.swz|
|drwxr-xr-x||2 root||root||1024 Jun 12 2012 history|
|-rw-r--r--||1 root||root||6122 Jun 8 2012 index.html|
|-rw-r--r--||1 root||root||121213 Jun 8 2012 index.swf|
|-rw-r--r--||1 root||root||322020 Jun 8 2012 mx_18.104.22.16801.swz|
|-rw-r--r--||1 root||root||657 Jun 8 2012 playerProductInstall.swf|
|-rw-r--r--||1 root||root||482555 Jun 8 2012 spark_22.214.171.12401.swz|
|-rw-r--r--||1 root||root||54416 Jun 8 2012 sparkskins_126.96.36.19901.swz|
|-rw-r--r--||1 root||root||26351 Jun 8 2012 swfobject.js|
|-rw-r--r--||1 root||root||426 May 19 2012 table.html|
|-rw-r--r--||1 root||root||186370 Jun 8 2012 textLayout_188.8.131.52.swz|
The app. is hosted on an embedded Linux system running the Boa web server. Ethernet is 100Mbit. The problem is that when trying to initially load the app in the browser it takes a shocking 23 seconds to load. Is this normal?
I've previously deployed a Flex2 app. on embedded Linux with Boa and it loaded in about 2 seconds and was a much larger app.
One theory I had was that there was something wrong with the webserver or the ethernet interface. So I wrote a script to wget all the files over the LAN and that only takes about a second to load all the files, so the webserver and board are capable of sending the files nice and fast.
I am at a loss to explain why it's so slow, please help!
I tried the merged into code option. The end to end load time (time between accessing the URL and the initial GUI coming up) is still 23 seconds though. I did see a small difference in that the progress loading bar came up a bit quicker and showed a longer duration progress (prob. as the code size increased). Please help, pretty desperate here.
I tried to profile but get the error message "Unable to connect to the application to fetch profile data". I kind of suspect it's not the application itself causing the delay, as all it does initially is display a login form, no other processing at all. Plus when I launch the app from the IDE it loads in about a second. There must be some problem with loading the app. over the web server???
How big is the SWF file?
When loading from the web, there are different security rules, and SWFs are streamed instead of loaded in one chunk.
Profile the app in the IDE to prove all it is doing is putting up the login dialog.
The SWF now I've rebuilt it with the options you selected is 954357 bytes in length, pretty small right?
I can load that SWF direct from the webserver with wget in 0.4 seconds.
I'll try to get the profiling working.
Europe, Middle East and Africa