Skip to content

A JavaScript Library for battery, connection and DPI checks to manage your assets

Notifications You must be signed in to change notification settings

timwright12/js-asset-management

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

JS Asset Management

This is a small JavaScript library to help asset management in the browser. Whether it's images, JavaScript files, or anything you want to conditionally load based on Connection speed and Battery life.

The API

Manage.connection will return "good" or "bad" (over 3mbs is good)

Manage.battery will return "good" or "bad" (over 25% is good)

Manage.pixelRatio will return "good" or "bad" (2:1 is good)

About

A JavaScript Library for battery, connection and DPI checks to manage your assets

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages