found that issue, .clone()(both .clone() and .clone(true)) seems to be a lot slower in IE, is this a know issue? Lucky I don't need to use clone, .html() will work fine. Just want to let people know the .colne is very slow in IE or it just might be me(please let me know if it is).
Eridius wrote: > > here is the code is question: > > for(var x = 0; x < array_length; x++) > { > var search_text = order_new[x]; > for(var i = 0; i < array_length; i++) > { > if(search_text === order_old[i]) > { > var table_id = order_old[i].split('.')[1]; > var new_tab_html = '<li id="tab_' + table_id + > '1"> > javascript:void(0); Prices </li>'; > new_tab_html += '<li id="tab_' + table_id + > '2"> javascript:void(0); > Reviews </li>'; > new_tab_html += '<li id="tab_' + table_id + > '3"> javascript:void(0); > Photos </li>'; > > var element = $('#hotel_tab_' + table_id + ' > ul'); > element.removeClass('tabs_nav'); > element.empty(); > element.html(new_tab_html); > new_dom[x] = $('#hotel_selection' + > table_id).clone(true); > new_dom_ids[x] = table_id; > break; > } > } > } > > The first loop loops through 13 element and the inner for loops throught > 13 until it find the correct one. In FF/Safari/Opera it takes about 1-2 > seconds to run through(which seems ok) but in IE 6/7 it take 20-25 seconds > to run which is way longer, anyone see why it would take so much longer on > IE that FF? > -- View this message in context: http://www.nabble.com/slowness-in-IE-6-7-compare-to-FF-Safari-Opera-tp14587007s27240p14587331.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.