Reduce your XAP file size in seconds

Want to make your Silverlight XAP packages smaller? It couldn’t be easier!

Extract the XAP file (rename to .ZIP and use any extractor). Then… re-compress it using a good ZIP tool, like WinRAR.

Third party zippers are far more efficient than the one built in to Visual Studio.

In my trial, I got a 280k file down to 220k!

8 Responses to “Reduce your XAP file size in seconds”

  1. Justin-Josef Angel Says:

    Have you actually tried loading it up in a webpage after you rezipped it?
    Rezipping it might save bandwidth, but were you actually manage to serve the XAP file and have Silverlight load it up again?

    It takes more than WinRar if memory servers.
    David has an excellent post on this:
    http://blogs.msdn.com/delay/archive/2008/07/16/smaller-is-better-a-simple-step-to-shrink-the-download-size-of-silverlight-2-applications.aspx

    – Justin

  2. Jordan Says:

    Hey there,

    Naturally I tested this before posting :) . I don’t RAR the files… I use WinRAR to Zip them (with the “Best” compression setting).

    The article you linked to is very good BTW!

  3. tswcbyy20 Says:

    Very good

  4. Devin Rose Says:

    One thing I noticed when Silverlight 2 released was that my xap binary went from 624 KB (built with the beta 2) to about 450 KB with the released version.

    Squeezing out another 20% would be cool, too, using this idea!

  5. Jordan Says:

    Hey Devin,

    I wonder if the improvement is better compression or if the RTW version produces smaller files (some debugging code removed etc)…

  6. Silverlight Cream for October 31, 2008 -- #415 Says:

    [...] Reduce your XAP size in seconds [...]

  7. leovernazza Says:

    Hi, or you can just use the ComponentOne XapOptimizer (it also removes the unused classes and xaml resources from your xap file)

    http://demo.ComponentOne.com/Silverlight/XapOptimizer

    Regards

  8. ebay Says:

    While generating cash, golf mental tips?Taxes The best, In d games.Drive gear by, with certain conditions.Home a decent ebay, the instructors can Rate Number service.After the buyer, and Sciences? The.,

Leave a Reply