My favorites | Sign in
Project Logo
                
New issue | Search
for
| Advanced search | Search tips
Issue 325: SWFObject Optimization
2 people starred this issue and may be notified of changes. Back to list
Status:  OnHold
Owner:  ----
Type-Enhancement
Priority-Medium


Sign in to add a comment
 
Reported by piartt, Jun 13, 2009
I just downloaded last version (2.2) to use it and I made a few changes to
optimize the shrinked size : 
function cleanup and onDomLoad are only called by themselves, so you don't
need to name them : 
/*onDomLoad = */ function(){...

You used OBJECT = "object" constant but not everywhere (one place is missing)

Many var could be combined to reduce the weight
var b = doc.getElementsByTagName("body")[0];
var o = createElement(OBJECT);
becomes :
var b = doc.getElementsByTagName("body")[0]
,o = createElement(OBJECT);


Bye,

Thomas.
Comment 1 by bobbyvandersluis, Jun 13, 2009
Thanks for the feedback, we will take the optimizations into account for the next dev
cycle.
Status: OnHold
Labels: -Type-Defect Type-Enhancement
Comment 2 by piartt, Jun 14, 2009
Great !
(This informations are simply comming from yuicompressor in verbose mode)
Sign in to add a comment

Hosted by Google Code