async-files

WebComponent that allows to load javascripts and css files asynchronously and store the files in localStorage.


Keywords
Async, load, WebComponent, web-components, files, localstorage, performance
License
MIT
Install
bower install async-files

Documentation

<async-files> element </async-files>

WebComponent that allows to load javascripts and css files asynchronously and store the files in localStorage.

Use guide

Install aync-files component using [bower].
$ bower install async-files#master

Use

...
<head>
  <!-- Optional polyfil-->
  <script src="//cdnjs.cloudflare.com/ajax/libs/webcomponentsjs/0.7.20/webcomponents.min.js"></script>
  <!--Import component-->
  <link rel="import" href="webcomponent/async-files.html">
</head>
<body>
    <async-files
      js='["one.js", "./two.js"]'
      css='["alternative-fonts.css"]'>
    </async-files>
</body>
...

License

MIT