में लोडिंग का चयन बहुत लंबा लगता है मैं बूटस्ट्रैप चयन ड्रॉपडाउन सूची में 1000 रिकॉर्ड लोड कर रहा हूं। इसमें क्रोम में लगभग 2 सेकंड लगते हैं लेकिन आईई 9 में 30 सेकंड लगते हैं। इसके अलावा, आईई में बूटस्ट्रैप मोडल को रद्द या एक्स आउट करना 10 + एस भी लेता है। एपीआई कॉल ठीक है लेकिन प्रतिपादन इतना धीमा है; क्या कोई मुझे कुछ दिशा दे सकता है?बूटस्ट्रैप का चयन आईई
तो मैं ग्राहकों की एक सूची लोड कर रहा हूं और चयनित सेटिंग कर रहा हूं। कोड यहाँ है।
var customerPicker = $('#customer-picker');
API.getCustomers().then(function (result) {
loadDropdown(customerPicker, result.customers);
// set the selected to current customer; it takes 10s in IE
customerPicker.val(currentCustomerId).selectpicker('refresh');
// it takes about 10s in IE too. selector is the bs modal div
$(selector).css('z-index', '1060').modal('show');
}).catch(function (errorMessage) {
ToastManager.showError(errorMessage || 'An error occurred while loading customer list. Please try again.');
});
function loadDropdown($div, arr) {
var options = '';
$.each(arr, function (i, item) {
options = options + '<option value="' + item.Value + '">' + item.Text + '</option>';
});
$div.html(options);
}
क्या आपने '$ div.append ('
@RobinMackenzie हाँ मैंने भाग्य के बिना कोशिश की। – Quentin
आप किस jQuery का उपयोग कर रहे हैं? यह काफी संभव है कि आप विभिन्न jQuery रिलीज़ को आजमाकर हल कर सकते हैं क्योंकि आपने जिन कार्यों का उल्लेख किया है, वे सीधे जेएस के साथ सौदा करते हैं। –