View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0005426 | OXID eShop (all versions) | 3.2. HTML, CSS, JavaScript | public | 2013-09-21 14:13 | 2024-09-25 11:21 |
Reporter | leofonic | Assigned To | |||
Priority | high | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 4.8.0_5.1.0_beta1 | ||||
Fixed in Version | 7.0.0 | ||||
Summary | 0005426: oxDropDown causes Lag on clicks | ||||
Description | Javascript click perfomance degrades with every product with variants dropdown loaded. This is because oxdropdown attaches handler hideall to document object on click, these handlers are evaluated on every click anywhere. If you have a list with 100 products with variant dropdowns, you have 100 handlers on document object click, and reaction to any click is about one second delayed. This is especially citical if product lists are loaded with Ajax, because those handlers get more and more with every product list loaded. | ||||
Additional Information | Possible fix would be to hide the dropdown on mouseout: // clicking on drop down this.oxDropDown.click(function() { self.toggleDropDown(); }); // selecting value $( 'a', this.valueList ).click( function (){ self.select( $(this) ); return self.action(); }); // moving else where this.oxDropDown.mouseleave( function(){ self.hideAll(); }); | ||||
Tags | Performance and Caching Rework | ||||
Attached Files | |||||
Theme | Not defined | ||||
Browser | All | ||||
PHP Version | Not defined | ||||
Database Version | Not defined | ||||