faulknercs / Knockstrap

Knockout bindings to twitter bootstrap 3
faulknercs.github.io/Knockstrap/
MIT License
142 stars 37 forks source link

Progress binding CPU Usage #33

Closed pasodoff closed 9 years ago

pasodoff commented 9 years ago

It appears that in version 1.2.1 that if the animated property is set to true the browser continuously paints the progress bar. Turning this option off ensured resulted in the CPU usage returned to normal.

faulknercs commented 9 years ago

Animated property simply adds bootstrap's active css class to progress bar. I checked this at bootsrap's docs page and it also is reproduced. So this issue is related with bootstrap's animation of progress bar.

pasodoff commented 9 years ago

You are absolutely correct. Even if the .progress-bar-striped class isn't applied, the active tag causes the constant rendering.

Example: JSFiddle

My mistake.