Modernizr/Modernizr — pull request #477 by psayre-sc (2012-01-28 20:37:21+00:00)
Title: Battery API and Low Battery

Feature detect for both existence of Battery API, and for low battery
power.
https://developer.mozilla.org/en/DOM/window.navigator.mozBattery
http://davidwalsh.name/battery-api

Using the low power detect, we can disable CPU/GPU intensive JS/CSS (especially transitions and animations) to conserve battery power.

API Status:
Right now only Firefox Aurora has support. Webkit implementation looks stalled. No details from Opera or Microsoft (as far as I can tell).