{"action":"created","issue":{"url":"https://api.github.com/repos/ThemeFuse/Unyson/issues/1174","labels_url":"https://api.github.com/repos/ThemeFuse/Unyson/issues/1174/labels{/name}","comments_url":"https://api.github.com/repos/ThemeFuse/Unyson/issues/1174/comments","events_url":"https://api.github.com/repos/ThemeFuse/Unyson/issues/1174/events","html_url":"https://github.com/ThemeFuse/Unyson/issues/1174","id":124663271,"number":1174,"title":"Theme settings tabs are really slow to load","user":{"login":"2Fwebd","id":5446124,"avatar_url":"https://avatars.githubusercontent.com/u/5446124?v=3","gravatar_id":"","url":"https://api.github.com/users/2Fwebd","html_url":"https://github.com/2Fwebd","followers_url":"https://api.github.com/users/2Fwebd/followers","following_url":"https://api.github.com/users/2Fwebd/following{/other_user}","gists_url":"https://api.github.com/users/2Fwebd/gists{/gist_id}","starred_url":"https://api.github.com/users/2Fwebd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/2Fwebd/subscriptions","organizations_url":"https://api.github.com/users/2Fwebd/orgs","repos_url":"https://api.github.com/users/2Fwebd/repos","events_url":"https://api.github.com/users/2Fwebd/events{/privacy}","received_events_url":"https://api.github.com/users/2Fwebd/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ThemeFuse/Unyson/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/ThemeFuse/Unyson/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"moldcraft","id":1475489,"avatar_url":"https://avatars.githubusercontent.com/u/1475489?v=3","gravatar_id":"","url":"https://api.github.com/users/moldcraft","html_url":"https://github.com/moldcraft","followers_url":"https://api.github.com/users/moldcraft/followers","following_url":"https://api.github.com/users/moldcraft/following{/other_user}","gists_url":"https://api.github.com/users/moldcraft/gists{/gist_id}","starred_url":"https://api.github.com/users/moldcraft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moldcraft/subscriptions","organizations_url":"https://api.github.com/users/moldcraft/orgs","repos_url":"https://api.github.com/users/moldcraft/repos","events_url":"https://api.github.com/users/moldcraft/events{/privacy}","received_events_url":"https://api.github.com/users/moldcraft/received_events","type":"User","site_admin":false},"milestone":null,"comments":11,"created_at":"2016-01-03T18:21:31Z","updated_at":"2016-01-04T18:29:01Z","closed_at":null,"body":"Hi there, \r\n\r\nWe have some customers complaining about the slowness of the Theme Settings pages. \r\nAs we have a lot of options and there is some PHP conditions for some of them and though a lot of JS loaded for the options. It's true that it can take a while as all is loaded in one piece.\r\n\r\nIs there any way to deactivate that and have a different page for each tab ? So we don't load all the options but one tab at the time. \r\n\r\nRegards,\r\n\r\n2F\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ThemeFuse/Unyson/issues/comments/168760616","html_url":"https://github.com/ThemeFuse/Unyson/issues/1174#issuecomment-168760616","issue_url":"https://api.github.com/repos/ThemeFuse/Unyson/issues/1174","id":168760616,"user":{"login":"danyj","id":2340172,"avatar_url":"https://avatars.githubusercontent.com/u/2340172?v=3","gravatar_id":"","url":"https://api.github.com/users/danyj","html_url":"https://github.com/danyj","followers_url":"https://api.github.com/users/danyj/followers","following_url":"https://api.github.com/users/danyj/following{/other_user}","gists_url":"https://api.github.com/users/danyj/gists{/gist_id}","starred_url":"https://api.github.com/users/danyj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danyj/subscriptions","organizations_url":"https://api.github.com/users/danyj/orgs","repos_url":"https://api.github.com/users/danyj/repos","events_url":"https://api.github.com/users/danyj/events{/privacy}","received_events_url":"https://api.github.com/users/danyj/received_events","type":"User","site_admin":false},"created_at":"2016-01-04T18:29:01Z","updated_at":"2016-01-04T18:29:01Z","body":"here , I trimmed down all unnecessary fw-clear ( clear via css after or give those an actual css layout )  4 per option\r\nhttps://github.com/ThemeFuse/Unyson/blob/bdc4f3ab1ed59e2c0b1ded227eb093cd1f556b4a/framework/views/backend-option-design-default.php#L119\r\n\r\ndesc and help dont need inner \r\nhttps://github.com/ThemeFuse/Unyson/blob/bdc4f3ab1ed59e2c0b1ded227eb093cd1f556b4a/framework/views/backend-option-design-default.php#L124\r\n\r\nhttps://github.com/ThemeFuse/Unyson/blob/bdc4f3ab1ed59e2c0b1ded227eb093cd1f556b4a/framework/views/backend-option-design-default.php#L114\r\n\r\nlook at this \r\nhttp://prntscr.com/9m1zep\r\nhttp://prntscr.com/9m1zn5\r\n\r\nthat cuts 30+KB from 470KB page  on 192 options and I did not even touch the tabs and JS\r\n\r\nand here is where the mess is \r\n\r\nhttp://prntscr.com/9m20hb\r\n\r\nmy admin page actually loads in  1.08sec  ( used to be 3sec before this #958 ) \r\n\r\nbut the JS ( show options page + initialize ) slows it down another 0.7sec \r\n\r\nnow I stayed away from all speed killers or I made my own option types to increasde the speed,  like slider , spinner , typography , the default ones are still killing it especially  the slider"}}