Class: loader

.PS. loader

new window.PS.loader()

source/components/ResourceLoader.js, line 25
Component that manage loading external resources
Author:
  • viktorl

Extends

  • starsGDK.Class

Methods

staticwindow.PS.loader.loadCSS(files, callback)

source/components/ResourceLoader.js, line 232
Load external CSS resources
Name Type Description
files Array
callback function

staticwindow.PS.loader.loadHTML(files, callback, callbackForSingleFile)

source/components/ResourceLoader.js, line 91
Load external HTML resources and pass file content back to callback function
Name Type Description
files Array
callback function
callbackForSingleFile function

staticwindow.PS.loader.loadJS(files, callback)

source/components/ResourceLoader.js, line 202
Load external JS resources
Name Type Description
files Array
callback function

staticwindow.PS.loader.loadJSON(files, callback, callbackForSingleFile)

source/components/ResourceLoader.js, line 101
Load external JSON resources and pass file content back to callback function
Name Type Description
files Array
callback function
callbackForSingleFile function

staticwindow.PS.loader.loadLang(files, callback)

source/components/ResourceLoader.js, line 110
Load external Lang resources
Name Type Description
files Array
callback function

staticwindow.PS.loader.loadText(files, callback, callbackForSingleFile)

source/components/ResourceLoader.js, line 81
Load external Text resources and pass file content back to callback function
Name Type Description
files Array
callback function
callbackForSingleFile function