Skip to content

WebComponent that allows to load javascripts and css files asynchronously.

Notifications You must be signed in to change notification settings

GNURub/async-files

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

<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

About

WebComponent that allows to load javascripts and css files asynchronously.

Resources

Stars

Watchers

Forks

Packages

No packages published