How do I see if a certain object has been loaded, and if not, how can it be loaded, like the following?
if (!isObjectLoaded(someVar)) { someVar= loadObject()
If you want to detect a custom object:
// craete a custom object function MyObject(){ } // check if it's the right kind of object if(!(object instanceof MyObject)){ object = new MyObject(); }