An element's computed style is the current calculated style of the property.
This is different than the values on element.style as
element.style doesn't reflect styles provided by css or the browser's default
css properties.
Getting computed values individually is expensive! This plugin lets you get all
the style properties you need all at once.
Demo
The following demo illustrates the performance improvement curStyle provides by providing
a faster 'height' jQuery function called 'fastHeight'.
Use curStyles to rapidly get a bunch of computed styles from an element.
Quick Example
Use
An element's computed style is the current calculated style of the property. This is different than the values on
element.styleaselement.styledoesn't reflect styles provided by css or the browser's default css properties.Getting computed values individually is expensive! This plugin lets you get all the style properties you need all at once.
Demo
The following demo illustrates the performance improvement curStyle provides by providing a faster 'height' jQuery function called 'fastHeight'.