View Issue Details

IDProjectCategoryView StatusLast Update
0005426OXID eShop (all versions)3.2. HTML, CSS, JavaScriptpublic2023-11-21 09:46
Status acknowledgedResolutionopen 
Product Version4.8.0_5.1.0_beta1 
Target VersionFixed in Version 
Summary0005426: oxDropDown causes Lag on clicks
DescriptionJavascript 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 InformationPossible fix would be to hide the dropdown on mouseout:

            // clicking on drop down

            // selecting value
            $( 'a', this.valueList ).click( function (){
       $(this) );
                return self.action();

            // moving else where
            this.oxDropDown.mouseleave( function(){
TagsNo tags attached.
ThemeNot defined
PHP VersionNot defined
Database VersionNot defined



2013-09-21 14:23


oxdropdown_events.jpg (178,466 bytes)
oxdropdown_events.jpg (178,466 bytes)