Hey guys, I've been concerned lately and would really appreciate if someone could clear something up:
I'm using AJAX to load an array (many, MANY values) from a .json file into an array object once. I also load the kerning of a custom font with it, so I'm not worried right now, but I think I'll be using this plugin for other purposes with several files in the future, loading at any time (dialog, etc...)
So the thing is: keeping in mind that loading a file isn't instant, will the expression AJAX.lastdata be conflicted when constantly loading different files?
Should I make loading a file a function that gives a signal when finished to be sure, or am I ovethinking this?
Or should I just load everything from one file (by using tokenat)? Would it be cpu-expensive?
In the end, everything ends up in arrays so, is there a hacky alternative to have loaded array objects from the beginning without using AJAX (maybe by tampering with the project files)?
Any help/info is appreciated.