Thanks Ted.

But one problem. I dont have *anything* embedded in my app at this point. As I said my app is 477k. Is there anything else that could explain it? Could I really have enough code (written in a week) to explain the size? What is a more "normal" small flex app size?

Regards,
Hank



On 7/3/06, Ted Patrick <[EMAIL PROTECTED]> wrote:
Hank,

First off the size of your app seems rather large. Here are a few things to check...

1. @Embed with Images - Embedding images directly adds to file size. Optimize images before embedding them.
2. Font usage - Fonts embed all glyths into the SWF resulting in a larger files in jumps of 30K.

Use of Runtime Shared Libraries:

Typically you do not have one Flex app, you have several, and then they start to multiply. RSL's allow you to package a set of components and assets into a dll of sorts and reuse it across applications. The result is a single RSL reused by many smaller Flex applications. The RSL is loaded via URL and cached in the browser (make sure it gets cached!!) and much smaller flex apps load this RSL at runtime.

No RSL:
       App1.swf = 300K
        App2.swf = 300K
        App3.swf = 300K

RSL Usage:

       App1.swf = 20K
        App2.swf = 20K
        App3.swf = 20K
       Rsl.swf = 280K

http://www.powersdk.com/ted/2005/07/flex-shared-libraries-tips-and-tricks.php

http://www.adobe.com/devnet/flex/articles/rsl.html

Hope this helps...

Ted Patrick
Flex Evangelist
Adobe Systems Incorporated






________________________________________
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of hank williams
Sent: Sunday, July 02, 2006 7:37 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] app startup / load times

For the first time since I started playing with flex (a couple of
weeks) I checked out the size of my app, which is currently 477k.

My app isnt that big, so I presume most of that is just the size of
the framework. I am just wondering what do people think about that in
terms of user start up time. For a user with a 500kbps connection that
is about 8 seconds before the app is loaded. Are people doing loaders
to get things started? is there an accepted strategy for how to deal
with this?

There was another thread recently about how people shouldnt use flex
for websites and one person provided aesthetic reasons. In my mind, if
there is a reason (and I am not arguing that there is) but if there is
a reason not to use it for websites it would be the file size. 10
seconds seems like a long time to make someone wait before they see
something. On the other hand perhaps I am underestimating the average
connection speed.

Anyway, like I said I would just like to get peoples thoughts on this issue.

Hank



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/





__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to