]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commit
Orbit: skip expensive progress computation (if disabled) 4851/head
authorDaniel Hahler <git@thequod.de>
Sun, 30 Mar 2014 19:36:49 +0000 (21:36 +0200)
committerDaniel Hahler <git@thequod.de>
Sun, 30 Mar 2014 19:46:39 +0000 (21:46 +0200)
commit4bd15b837a6b29927990fe44a30bf1a3c71bcbfc
tree0170fc42d83d52abb31d282812ab8665d6e2e205
parentee81bf95ba623f4d0c6e4b2da5e4ed5deaf652ee
Orbit: skip expensive progress computation (if disabled)

This adds the timer_show_progress_bar data option/setting, which skips
creation of the progress element.
Additionally the $orbit-timer-show-progress-bar SASS setting will
generate `display:none` for .orbit-progress.

If the progress element is not visisble (`display:none`) or does not
exist, the progress handling gets skipped.

This avoids the quite expensive animations, which are not visible
anyway, and saves us a lot of CPU cycles.

Fixes https://github.com/zurb/foundation/issues/4283
doc/pages/components/orbit.html
js/foundation/foundation.orbit.js
scss/foundation/components/_orbit.scss