2

Articles by Lionel Ndifon

 3 years ago
source link: https://www.developerdrive.com/author/Lionel-Ndifon/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Articles by Lionel Ndifon

In this tutorial we’re going to show you how to use the JavaScript Battery API to improve the user experience for people in desperate need of a charger. We’ll look at the Battery API itself, as well as some techniques for getting the most out of every drop of the most precious of resources! Some browsers lack support for the Battery API (you guessed it; Safari and IE), so a quick support check can go a long way in terms of debugging: if(navigator.getBattery){ // Battery API available. // Rest of code goes...


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK