1, sometimes when using jstree we want to execute a method after it loaded at once, so we can use the following jstree own callback:
.on ( 'ready.jstree', function (Event, obj) {
fun1 ();
});
2 , if you want to execute a method in the loading process , so we can use the following jstree own callback:
.on('loaded.jstree', function(event, obj) {
fun2();
});