efficientLoad
It is a small library that allows efficient load js files and css
Load files only when you need them, "Github Repository."
Installation
npm install efficientLoad --save
Usage
/** * Initial Config. */ var config = element:'cuerpo'//Id of the element where the files were inserted pools://Array Pools name:'poolUno'route:'libs/'files:'test1,test2'type:'js'//Pool of js files name:'otherPool'route:'libs/'files:'pruebas,PERSONAS.arg'type:'css'//Pool of css files name:'Traducciones'route:'traductions/'files:'traduction.arg'type:'js'//Pool of traductions files arg should be written for variable use ; /** * Use. */ var idioma = 'en'; /** * Instantiating efficientLoad. */ var eL = config; /** * all pools. */ eL; //eL.load(''); //eL.load('*'); /** * specific pool. */ eL; /** * specific pool and argument(arg). */ eL; /** * all pools and argument(arg). */ eL;
More utilities
console; console; console; console;
Release History
- 1.0.0 Initial release