jsTree - otimização de renderização | renderização muito longa com 2000 nós
Eu estou usando jsTree (1.0-rc3) com a opção de carregar dados por AJAX e eu tenho um problema com o carregamento de cerca de ~ 2000 nó filho por ele. Enquanto o servidor responde dentro de alguns segundos, o jsTree leva cerca de 40 segundos apenas para renderizar os resultados no navegador (chrome, FF). Além disso, o FF retorna informações sobre nenhuma resposta do 'jquery-1.7.2.min.js'. A mesma quantidade de dados congela o IE. Está sobrecarregado com dados? Ou é algum tipo de bug? Há algum fator variável que possa me ajudar com renderização mais rápida?
jQuery( "#dependency-tree" ).jstree(
{
'plugins':['themes', 'json_data', 'ui', 'core', 'types', 'sort'],
"json_data":{
"progressive_render": true,
"data":initData,
cache:false,
"ajax":{
"url":function ( node )
{
return appContext + 'GetUnitsNode/'
+ node.attr( 'id' );
},
dataType:"text",
"success":function ( data )
{
if ( data == "none" )
{
return false;
}
return jQuery.parseJSON( data );
}
}
},
"ui":{
'select_limit':1
},
"core":{
'animation':0,
'html_titles':true
},
"themes":{
"theme":"rules",
"dots":true,
"icons":true
},
"types":{
"types":{
"default":{
"icon":{
"image":appContext + "/img/orange.png"
}
}
}
},
"sort":function ( a, b )
{
return this.get_text( a ).toUpperCase() > this.get_text( b ).toUpperCase() ? 1 : -1;
}
} ).bind( "select_node.jstree", function ( event, data )
{
submitedNodeId = data.rslt.obj.attr( 'id' );
submitedNodeTypeId = data.rslt.obj.attr( "typeId" );
submitedNodeLast = data.inst.is_leaf( data.rslt.obj );
g_node_text = jQuery( data.rslt.obj ).children().eq(1).html();
} );