{"action":"created","issue":{"url":"https://api.github.com/repos/select2/select2/issues/781","labels_url":"https://api.github.com/repos/select2/select2/issues/781/labels{/name}","comments_url":"https://api.github.com/repos/select2/select2/issues/781/comments","events_url":"https://api.github.com/repos/select2/select2/issues/781/events","html_url":"https://github.com/select2/select2/issues/781","id":10515690,"number":781,"title":"Select2 is slow on opening","user":{"login":"MgSam","id":1965570,"avatar_url":"https://avatars.githubusercontent.com/u/1965570?v=3","gravatar_id":"","url":"https://api.github.com/users/MgSam","html_url":"https://github.com/MgSam","followers_url":"https://api.github.com/users/MgSam/followers","following_url":"https://api.github.com/users/MgSam/following{/other_user}","gists_url":"https://api.github.com/users/MgSam/gists{/gist_id}","starred_url":"https://api.github.com/users/MgSam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MgSam/subscriptions","organizations_url":"https://api.github.com/users/MgSam/orgs","repos_url":"https://api.github.com/users/MgSam/repos","events_url":"https://api.github.com/users/MgSam/events{/privacy}","received_events_url":"https://api.github.com/users/MgSam/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":76,"created_at":"2013-01-31T20:18:53Z","updated_at":"2015-07-22T16:31:24Z","closed_at":"2014-12-11T19:59:10Z","body":"I'm finding Select2 is quite slow when opening its dropdown menu if the underlying select has a fair number of items. Am I right in guessing it is (re)creating the HTML/DOM for this dropdown each time it is invoked? Wouldn't it make more sense to cache this and only redraw it if the underlying select changes?\r\n\r\nHere's an example:\r\nhttp://jsfiddle.net/48wFG/1/\r\n\r\nThanks in advance."},"comment":{"url":"https://api.github.com/repos/select2/select2/issues/comments/123781621","html_url":"https://github.com/select2/select2/issues/781#issuecomment-123781621","issue_url":"https://api.github.com/repos/select2/select2/issues/781","id":123781621,"user":{"login":"fk","id":21834,"avatar_url":"https://avatars.githubusercontent.com/u/21834?v=3","gravatar_id":"","url":"https://api.github.com/users/fk","html_url":"https://github.com/fk","followers_url":"https://api.github.com/users/fk/followers","following_url":"https://api.github.com/users/fk/following{/other_user}","gists_url":"https://api.github.com/users/fk/gists{/gist_id}","starred_url":"https://api.github.com/users/fk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fk/subscriptions","organizations_url":"https://api.github.com/users/fk/orgs","repos_url":"https://api.github.com/users/fk/repos","events_url":"https://api.github.com/users/fk/events{/privacy}","received_events_url":"https://api.github.com/users/fk/received_events","type":"User","site_admin":false},"created_at":"2015-07-22T16:31:24Z","updated_at":"2015-07-22T16:31:24Z","body":"Here's an issue tracking the missing loading image/spinner GIF: #3227 – I'll add my (incomplete) thoughts regarding the loading image over there."}}