Forum Discussion

Inactive User's avatar
Inactive User
12 years ago

json2.js

I noticed Lithium brings in json2.js. However, I need it to be loaded higher on the page or link to it earlier. Is there a good way to do this? I noticed the full path URL to the file includes a long...
  • DavidE's avatar
    DavidE
    12 years ago

    Hey jlutterlog,

     

    We have a Loader util which allows you to add functions to be run as the page finishes loading:

     

    LITHIUM.Loader(function() { //do something });

     

    David

  • Inactive User's avatar
    Inactive User
    12 years ago

    Nevermind. Needed to be LITHIUM.Loader.onLoad(function(){  })