This repository has been archived by the owner on Jul 5, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 30
system.loader()
Dylan Bickerstaff edited this page Mar 17, 2018
·
5 revisions
This method will load in scripts via ajax, cache them, wrap them, then execute them.
system.loader(string path, [function callBack]);
path: Path of the script to be executed.
callBack (Optional): Function to be called when method is finished.
this keyword: Returns true if loaded successful without errors. False if not.
system.loader() will inject an object into the loaded script.
- loader.path: Will equal the given path to the loaded script.
- loader.folder: Will equal the folder the loaded script is in.
/* /folder/script.js Contents
console.log('I have been loaded, and cached. My path is: '+loader.path)
*/
var path = '/folder/script.js';
system.loader(path, function() {
if(this) {
console.log('I have loaded successfully.');
}
});
/* Console Log
I have been loaded, and cached. My path is: /folder/script.js
I have loaded successfully.
*/
below average 2017
system Object
- bootLoader Object
- error Method
- files Property
- formatAMPM Method
- guid Method
- intervals Object
-
is Object
- mobile Method
- loader Method
- registry Object
-
service Class
- autoStart Method
- id Method
- interval Method
- path Method
- registerService Method
- run Method
- unregisterService Method
- updateRegistry Method
- services Object
explorer Object
- context Class
- drag Method
- file_explorer Method
- initiate Method
-
start Object
- addLButton Method
- addRButton Method
- allProgramsSearch Method
- allProgramsToggle Method
- append Method
- initiate Method
- toggle Method
- tabset Class
- theme Method
- window Class
- windows Object