---
id: 24
title: 'Adobe Flex : Improving startup performance'
slug: adobe-flex-improving-startup-performance
date: '2007-10-25T10:25:00Z'
modified: '2007-10-25T10:25:00Z'
status: publish
type: post
author: pmoelgaard
categories:
  - Adobe Flex
tags:
  - Performance Optimization
excerpt: null
canonicalPath: /posts/adobe-flex-improving-startup-performance
featuredImage: null
commentCount: 0
wordCount: 68
readingTimeMinutes: 1
hasMedia: false
hasVideos: false
url: 'https://forwardthinking.pemo.me/posts/adobe-flex-improving-startup-performance'
---
Watch what you do at startup !  
  
Don’t call setStyle() if you can avoid it, it’s one of the most expensive calls in the framework since it can trigger reloading styles in every component on the display list. If you have to call setStyle(), do it in the INITIALIZE event handler instead of the CREATION\_COMPLETE handler. Use deferred instantiation when possible (leave creationPolicy=”auto”). Avoid unneccessary nesting of containers.
