{"action":"created","issue":{"url":"https://api.github.com/repos/crlcu/multiselect/issues/124","repository_url":"https://api.github.com/repos/crlcu/multiselect","labels_url":"https://api.github.com/repos/crlcu/multiselect/issues/124/labels{/name}","comments_url":"https://api.github.com/repos/crlcu/multiselect/issues/124/comments","events_url":"https://api.github.com/repos/crlcu/multiselect/issues/124/events","html_url":"https://github.com/crlcu/multiselect/issues/124","id":240484298,"number":124,"title":"Search very slow for dataset with >4000 options","user":{"login":"sharath1907","id":29773301,"avatar_url":"https://avatars0.githubusercontent.com/u/29773301?v=4","gravatar_id":"","url":"https://api.github.com/users/sharath1907","html_url":"https://github.com/sharath1907","followers_url":"https://api.github.com/users/sharath1907/followers","following_url":"https://api.github.com/users/sharath1907/following{/other_user}","gists_url":"https://api.github.com/users/sharath1907/gists{/gist_id}","starred_url":"https://api.github.com/users/sharath1907/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sharath1907/subscriptions","organizations_url":"https://api.github.com/users/sharath1907/orgs","repos_url":"https://api.github.com/users/sharath1907/repos","events_url":"https://api.github.com/users/sharath1907/events{/privacy}","received_events_url":"https://api.github.com/users/sharath1907/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-07-04T19:06:37Z","updated_at":"2018-03-06T00:11:51Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nSearch feature for datasets with >4000 options is super slow. Page becomes unresponsive :( \r\nCan we have an optimized search feature?\r\n"},"comment":{"url":"https://api.github.com/repos/crlcu/multiselect/issues/comments/370613885","html_url":"https://github.com/crlcu/multiselect/issues/124#issuecomment-370613885","issue_url":"https://api.github.com/repos/crlcu/multiselect/issues/124","id":370613885,"user":{"login":"alban-ameti","id":30927214,"avatar_url":"https://avatars1.githubusercontent.com/u/30927214?v=4","gravatar_id":"","url":"https://api.github.com/users/alban-ameti","html_url":"https://github.com/alban-ameti","followers_url":"https://api.github.com/users/alban-ameti/followers","following_url":"https://api.github.com/users/alban-ameti/following{/other_user}","gists_url":"https://api.github.com/users/alban-ameti/gists{/gist_id}","starred_url":"https://api.github.com/users/alban-ameti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alban-ameti/subscriptions","organizations_url":"https://api.github.com/users/alban-ameti/orgs","repos_url":"https://api.github.com/users/alban-ameti/repos","events_url":"https://api.github.com/users/alban-ameti/events{/privacy}","received_events_url":"https://api.github.com/users/alban-ameti/received_events","type":"User","site_admin":false},"created_at":"2018-03-06T00:11:51Z","updated_at":"2018-03-06T00:11:51Z","author_association":"NONE","body":"Potential fix:\r\n\r\n```\r\nvar isIE = false;\r\nvar isSafari = false;\r\n\r\n$.fn.mShow = function() {\r\n    this.removeClass('hidden').show(0);\r\n    return this;\r\n};\r\n\r\n$.fn.mHide = function() {\r\n    this.addClass('hidden').hide(0);\r\n    return this;\r\n};\r\n\r\n$.expr[\":\"].search = function(elem, index, meta) {\r\n    return $(elem).text().startsWith(meta[3]);\r\n}\r\n```\r\n\r\nThis is not going to work for everyone obviously and you lose the ability to regex the entries and support for IE and safari.\r\n"}}
{"actor":{"display_login":"alban-ameti"}}