We use `curCSS( elem, prop )` internally, it's faster. Also, current code causes invoking `getStyles( elem )` twice (see the beginning of `curCSS') which adds overhead. `curCSS` accepts the third optional parameter `_computed`, you should use `styles = getStyles( elem )` once and pass the result here and also change the line:
```
computed = curCSS( elem, prop );
```
to:
```
computed = curCSS( elem, prop, styles );
```