Skip to content

An app scripts cache solution based on localStorage.

License

Notifications You must be signed in to change notification settings

afeiship/app-cache

Repository files navigation

app-cache

An app scripts cache solution based on localStorage.

version license size download

snapshot

installation

npm i @jswork/app-cache

usage

AppCache.load([
  '//cdn.bootcss.com/antd/3.1.0/antd.min.css',
  '//cdn.bootcss.com/zepto/1.0rc1/zepto.min.js',
  '//cdn.bootcss.com/q.js/1.4.1/q.min.js'
]);

resources

lt ie9 polyfill

<!--[if lt IE 9]>
<script type="text/javascript" src="https://cdn.polyfill.io/v2/polyfill.js?features=Array.prototype.indexOf,Array.prototype.filter,Object.keys"></script>
<![endif]-->

license

Code released under the MIT license.