I worte a flex application and uploaded it to my server.
The swf size is about 1 MB.
It is on apache tomcat.
When I download a 1MB file from the host using ftp it takes less than a second.
However, when I load the swf on firefox it takes 3 seconds just to get the progress bar, and 10 more seconds to finish loading. On Chrome, it takes almost 4 times slower !
(these times are when I don't cache the application on the browser).
Why is it so slow? what is in play here that I don't understand?
Thanks in advance !
Downloading a file and initializing an application are two different things.
Once your Flex application swf is downloaded, the application starts initializing. Flex has to instantiate all the components in the UI if you did not use deferred instantiation. Then, if you have services called at startup, this makes the init even slower.
What is your build type?