Friday, June 26, 2009

Embedding Skins in CSS - Flex

For a flex application, skinning our components, is a common and a very useful way to add some zing to the application that is being built. However, care has to be taken while creating skins for our components, for it could easily shoot the size of the CSS, that is packaged with the application, resulting in somewhat higher loading times.

One such example could be that, we should not extend a UIComponent while creating skins, extend ProgrammaticSkin instead. That itself can reduce the size of the css, by around 20KB.

I'll keep a lookout for more such factors and try and post them here as soon as possible. :)

Cheers.

No comments :