Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kriszyp/ua-optimized

AMD plugin for UA-based optimization of feature-detection-has.js based modules
https://github.com/kriszyp/ua-optimized

Last synced: 21 days ago
JSON representation

AMD plugin for UA-based optimization of feature-detection-has.js based modules

Awesome Lists containing this project

README

        

ua-optimized is an AMD plugin to enable branching to different built JavaScript layers
with built-in known sets of features to create highly optimized applications created
with feature detection. This allows one to write modules using feature detection
and then uses UA sniffing only as a build-time optimization to determine features
(the correct way to use UA sniffing, as it abstracts it away from correct code writing).
To use ua-optimized, load your application entry point module using ua-optimized
as a plugin:

require(["ua-optimized!my-app"]);