{"action":"created","issue":{"url":"https://api.github.com/repos/aristath/kirki/issues/326","labels_url":"https://api.github.com/repos/aristath/kirki/issues/326/labels{/name}","comments_url":"https://api.github.com/repos/aristath/kirki/issues/326/comments","events_url":"https://api.github.com/repos/aristath/kirki/issues/326/events","html_url":"https://github.com/aristath/kirki/issues/326","id":105412359,"number":326,"title":"Chosen - \"select2\" performance issue","user":{"login":"pixedelic","id":527057,"avatar_url":"https://avatars.githubusercontent.com/u/527057?v=3","gravatar_id":"","url":"https://api.github.com/users/pixedelic","html_url":"https://github.com/pixedelic","followers_url":"https://api.github.com/users/pixedelic/followers","following_url":"https://api.github.com/users/pixedelic/following{/other_user}","gists_url":"https://api.github.com/users/pixedelic/gists{/gist_id}","starred_url":"https://api.github.com/users/pixedelic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pixedelic/subscriptions","organizations_url":"https://api.github.com/users/pixedelic/orgs","repos_url":"https://api.github.com/users/pixedelic/repos","events_url":"https://api.github.com/users/pixedelic/events{/privacy}","received_events_url":"https://api.github.com/users/pixedelic/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aristath/kirki/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/aristath/kirki/milestones/3","html_url":"https://github.com/aristath/kirki/milestones/1.1","labels_url":"https://api.github.com/repos/aristath/kirki/milestones/3/labels","id":1173510,"number":3,"title":"1.1","description":null,"creator":{"login":"aristath","id":588688,"avatar_url":"https://avatars.githubusercontent.com/u/588688?v=3","gravatar_id":"","url":"https://api.github.com/users/aristath","html_url":"https://github.com/aristath","followers_url":"https://api.github.com/users/aristath/followers","following_url":"https://api.github.com/users/aristath/following{/other_user}","gists_url":"https://api.github.com/users/aristath/gists{/gist_id}","starred_url":"https://api.github.com/users/aristath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aristath/subscriptions","organizations_url":"https://api.github.com/users/aristath/orgs","repos_url":"https://api.github.com/users/aristath/repos","events_url":"https://api.github.com/users/aristath/events{/privacy}","received_events_url":"https://api.github.com/users/aristath/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":1,"state":"open","created_at":"2015-06-20T15:35:55Z","updated_at":"2015-09-09T01:14:46Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2015-09-08T15:59:42Z","updated_at":"2015-09-09T04:31:33Z","closed_at":"2015-09-09T01:14:46Z","body":"Don't know if this issue has been already discussed or if I'm missing something (very probably), but after removing\r\n\r\n```javascript\r\njQuery(document).ready(function($) {\r\n\t$('.select2').select2();\r\n});\r\n```\r\n\r\nfrom [class-kirki-controls-select2-multiple-control.php](https://github.com/aristath/kirki/blob/80bd4ae4366c750dc757d3d4877dad6a437da536/includes/controls/select2-multiple/class-kirki-controls-select2-multiple-control.php) and [class-kirki-controls-select2-control.php](https://github.com/aristath/kirki/blob/80bd4ae4366c750dc757d3d4877dad6a437da536/includes/controls/select2/class-kirki-controls-select2-control.php) and calling the function only once in an enqueued js file the performance has incredibly improved and I passed from 20/30 seconds to load the customizer to about 7 seconds.\r\n\r\nThank you for your effort. Manuel :-)"},"comment":{"url":"https://api.github.com/repos/aristath/kirki/issues/comments/138777007","html_url":"https://github.com/aristath/kirki/issues/326#issuecomment-138777007","issue_url":"https://api.github.com/repos/aristath/kirki/issues/326","id":138777007,"user":{"login":"aristath","id":588688,"avatar_url":"https://avatars.githubusercontent.com/u/588688?v=3","gravatar_id":"","url":"https://api.github.com/users/aristath","html_url":"https://github.com/aristath","followers_url":"https://api.github.com/users/aristath/followers","following_url":"https://api.github.com/users/aristath/following{/other_user}","gists_url":"https://api.github.com/users/aristath/gists{/gist_id}","starred_url":"https://api.github.com/users/aristath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aristath/subscriptions","organizations_url":"https://api.github.com/users/aristath/orgs","repos_url":"https://api.github.com/users/aristath/repos","events_url":"https://api.github.com/users/aristath/events{/privacy}","received_events_url":"https://api.github.com/users/aristath/received_events","type":"User","site_admin":false},"created_at":"2015-09-09T04:31:33Z","updated_at":"2015-09-09T04:31:33Z","body":"Awesome! Thanks for checking."}}