| Issue 325: | SWFObject Optimization | |
| 2 people starred this issue and may be notified of changes. | Back to list |
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.
|
|
,
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 |
|
,
Jun 14, 2009
Great ! (This informations are simply comming from yuicompressor in verbose mode) |
|
|
|