{"issue":{"created_at":"2011-11-09T16:48:51Z","state":"open","updated_at":"2011-11-21T04:01:41Z","user":{"gravatar_id":"a8dee94f1cb1e6a80fa71b8f640c42d8","id":1010525,"url":"https://api.github.com/users/johnnyreilly","login":"johnnyreilly","avatar_url":"https://secure.gravatar.com/avatar/a8dee94f1cb1e6a80fa71b8f640c42d8?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":7,"body":"Hi Guys,\r\n\r\nI know we all hate IE but alas I have yet to convince the powers that be to move away from it....\r\n\r\nMy problem is that  when using JSTree with IE (JSON data plugin using AJAX) and adding a large number of nodes (eg 2500) I get the \"A script on this page is causing Internet Explorer to run slowly\" message.  I've experienced this with IE6 and IE8.\r\n\r\nFirefox / Chrome no problems at all but unfortunately the users are forced to stick with IE.\r\n\r\nIs there anything that can be done to avoid this?  Had a look around but seen nothing obvious....","assignee":null,"id":2188101,"number":125,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"labels":[],"title":"\"A script on this page is causing Internet Explorer to run slowly\"","closed_at":null,"html_url":"https://github.com/vakata/jstree/issues/125","milestone":null,"url":"https://api.github.com/repos/vakata/jstree/issues/125"},"action":"created","comment":{"created_at":"2011-11-21T04:01:41Z","updated_at":"2011-11-21T04:01:41Z","user":{"gravatar_id":"891cb697809d121dbf771857caa0cef9","id":1137447,"url":"https://api.github.com/users/jbergenthal","login":"jbergenthal","avatar_url":"https://secure.gravatar.com/avatar/891cb697809d121dbf771857caa0cef9?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"Make each node in your Json data with as little information as possible: the less branches in your nodes, the less code is run to traverse it.\r\n\r\nFor instance, try using <a>'data' : 'node title'</a> instead of <a>'data' : {'title' : 'node title'}</a>\r\n\r\nor put attributes in the &lt;li&gt; tag instead of the &lt;a&gt; tag. Even better: do not use the 'attr' node at all.\r\n\r\n","id":2810689,"url":"https://api.github.com/repos/vakata/jstree/issues/comments/2810689"}}