1.0.7 • Published 8 years ago

fetcher-js-css v1.0.7

Weekly downloads
1
License
Apache License 2....
Repository
-
Last release
8 years ago

fetcher-js-css

This library implements a perform async load of dependencies with JavaScript. It also works for stylesheets.


how to import fetcher-js-css script async


<script>
function onjs() {
		fetcher.loadScript("url", function () {
			// here you can load other script which depend of 1st one...
			console.log('JS loaded')
		});	
	}
</script>
<script async onload="onjs()" type="text/javascript" src="fetcher-js-css.js" ></script>
npm install fetcher-js-css
fetcher = require('fetcher-js-css');
fetcher.loadCSS('url to CSS',function () {
            console.log('CSS loaded')
        });
fetcher.loadCSS('url',function () {
            console.log('CSS loaded')
        });				
fetcher.loadScript("url", function () {
		console.log('JS loaded')
	});		
1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago