SWF file size on coldfusiondocs.com

On January 3, 2008, in Flex, by Anuj Gakhar

I was fixing a bug today on coldfusiondocs.com , reported by one of the readers and I noticed that the SWF file that Flex generated was 482Kb in size. I think that is rather big for a simple application, that it is and it also explains why the server bandwidth usage had gone very high up suddenly in last 2 weeks after the launch of the site. So I asked my best friend (Google) on how to fix this and as always there was a solution to it.

Turns out that you can exclude the framework RSL  files from your build and reduce the SWF size by approx 500Kb. The trick is that latest flash player has the capability to cache RSL files as soon as it visits any Flex/Flash site. These RSL files can be hosted separately on the server (either in the same directory as SWF or a central URL if you host multiple SWF’s). And your SWF can load these RSL files if not already cached. Cool Stuff! Here is the full article.

So, the next time you visit coldfusiondocs.com, your browser will only load a SWF which is 92Kb in size as compared to a 482Kb till now.

However, if anyone faces any problems, please give me a shout.

Tagged with:  

8 Responses to SWF file size on coldfusiondocs.com

  1. Wow, yeah, that’s way faster. Good find.

  2. Hmm, I got an error when loading the flash.

    “RSL Error 1 of 1”

    And there was a white bar across the bottom of the page with the following:

    “Error #2032”

  3. Forgot to mention, using Firefox on Ubuntu 7.10

  4. Anuj Gakhar says:

    @Todd, yeah its a lot faster now, thanks.

    @Michael, I am unable to reproduce that error. I am Firefox on Windows XP. I will do some more tests from some other machines.

  5. Anuj Gakhar says:

    @Michael, I managed to find a way to generate the RSL out of the library files and upload it again. That seems to have done the trick. Can you confirm ?

  6. […] my last post , I spoke about how we can exclude the RSL files from Flex SWF generation. So, I uploaded […]

  7. Raefal says:

    hi guys these articles werehelpful for me , i hope they help you too

    Check these detailed articles to reduce swf file size :
    For flex or flash builder

  8. Bryce Yahtz says:

    This will save a lot of my bandwidth and space on my computer. Thanks for the help!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 445 other subscribers

© 2011 Anuj Gakhar
%d bloggers like this: