{"action":"created","issue":{"url":"https://api.github.com/repos/twbs/bootstrap/issues/23134","repository_url":"https://api.github.com/repos/twbs/bootstrap","labels_url":"https://api.github.com/repos/twbs/bootstrap/issues/23134/labels{/name}","comments_url":"https://api.github.com/repos/twbs/bootstrap/issues/23134/comments","events_url":"https://api.github.com/repos/twbs/bootstrap/issues/23134/events","html_url":"https://github.com/twbs/bootstrap/issues/23134","id":244656245,"number":23134,"title":"Severe performance issues apparently due to bootstrap dropdown clearMenus","user":{"login":"kikonen","id":478935,"avatar_url":"https://avatars0.githubusercontent.com/u/478935?v=4","gravatar_id":"","url":"https://api.github.com/users/kikonen","html_url":"https://github.com/kikonen","followers_url":"https://api.github.com/users/kikonen/followers","following_url":"https://api.github.com/users/kikonen/following{/other_user}","gists_url":"https://api.github.com/users/kikonen/gists{/gist_id}","starred_url":"https://api.github.com/users/kikonen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kikonen/subscriptions","organizations_url":"https://api.github.com/users/kikonen/orgs","repos_url":"https://api.github.com/users/kikonen/repos","events_url":"https://api.github.com/users/kikonen/events{/privacy}","received_events_url":"https://api.github.com/users/kikonen/received_events","type":"User","site_admin":false},"labels":[{"id":143643,"url":"https://api.github.com/repos/twbs/bootstrap/labels/js","name":"js","color":"ffc40d","default":false},{"id":250176946,"url":"https://api.github.com/repos/twbs/bootstrap/labels/v3","name":"v3","color":"d9534f","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-07-21T12:37:47Z","updated_at":"2018-02-07T05:51:42Z","closed_at":"2017-08-09T04:57:22Z","author_association":"NONE","body":"For a while I've pondered strange slowdown in web app pages (which I'm developing). After taking profiler into use, I could see that every click, anywhere on page, takes over 200+ms. And according to profiler this time is taken by bootstrap Dropdown.clearMenus. i.e. try to click just on page background, 200+ms delay, try to focus click any field, again 200+ms delay. More specificly time seems to be taken from jQuery selector execution within \"clearMenus\".\r\n\r\nThis is rather awkward, since this app needs to be able to show rather large tables (say 1000+ rows), but this 200+ms latency on every click starts to make pages unusably slow to respond to anything.\r\n\r\nIt looks like there nothing what I can do about this issue without hacking internals of bootstrap Dropdown code, which contains this hardcoded \"try to clearMenus if user  clicks anywhere\".\r\n\r\nScreenshot from profiler:\r\n<img width=\"755\" alt=\"screenshot 2017-07-21 15 35 56\" src=\"https://user-images.githubusercontent.com/478935/28463675-5246e082-6e2a-11e7-8028-5b4409ac0224.png\">\r\n\r\nNote: Pages encountering issue, don't actually have lot of of dropdown menus (and none of them reside in this large tables). Pages contain only around 10 dropdown menus in navbar (plus one or two elsewhere)."},"comment":{"url":"https://api.github.com/repos/twbs/bootstrap/issues/comments/363664965","html_url":"https://github.com/twbs/bootstrap/issues/23134#issuecomment-363664965","issue_url":"https://api.github.com/repos/twbs/bootstrap/issues/23134","id":363664965,"user":{"login":"jordan-ware","id":14194954,"avatar_url":"https://avatars2.githubusercontent.com/u/14194954?v=4","gravatar_id":"","url":"https://api.github.com/users/jordan-ware","html_url":"https://github.com/jordan-ware","followers_url":"https://api.github.com/users/jordan-ware/followers","following_url":"https://api.github.com/users/jordan-ware/following{/other_user}","gists_url":"https://api.github.com/users/jordan-ware/gists{/gist_id}","starred_url":"https://api.github.com/users/jordan-ware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jordan-ware/subscriptions","organizations_url":"https://api.github.com/users/jordan-ware/orgs","repos_url":"https://api.github.com/users/jordan-ware/repos","events_url":"https://api.github.com/users/jordan-ware/events{/privacy}","received_events_url":"https://api.github.com/users/jordan-ware/received_events","type":"User","site_admin":false},"created_at":"2018-02-07T05:51:42Z","updated_at":"2018-02-07T05:51:42Z","author_association":"NONE","body":"We had performance issues as well, most noticeable on devices with lower processing power.\r\n\r\n@kikonen's suggestion solved the issue for us - our jquery attribute checks went from >200 down to roughly 30 due to the class narrowing down the elements before attributes were checked. If it's possible to remove the attribute check from the selector, that would be ideal as well but I'm not entirely sure. Will try it out.\r\n\r\n"}}
{"actor":{"display_login":"jordan-ware"}}