Skip to content

Latest commit

 

History

History
10 lines (6 loc) · 428 Bytes

README.md

File metadata and controls

10 lines (6 loc) · 428 Bytes

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)