{"action":"created","issue":{"url":"https://api.github.com/repos/magento/magento2/issues/6413","repository_url":"https://api.github.com/repos/magento/magento2","labels_url":"https://api.github.com/repos/magento/magento2/issues/6413/labels{/name}","comments_url":"https://api.github.com/repos/magento/magento2/issues/6413/comments","events_url":"https://api.github.com/repos/magento/magento2/issues/6413/events","html_url":"https://github.com/magento/magento2/issues/6413","id":174226250,"number":6413,"title":"Magento 2.1 CE JS freezes browser on admin product page","user":{"login":"PingusPepan","id":2404541,"avatar_url":"https://avatars.githubusercontent.com/u/2404541?v=3","gravatar_id":"","url":"https://api.github.com/users/PingusPepan","html_url":"https://github.com/PingusPepan","followers_url":"https://api.github.com/users/PingusPepan/followers","following_url":"https://api.github.com/users/PingusPepan/following{/other_user}","gists_url":"https://api.github.com/users/PingusPepan/gists{/gist_id}","starred_url":"https://api.github.com/users/PingusPepan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PingusPepan/subscriptions","organizations_url":"https://api.github.com/users/PingusPepan/orgs","repos_url":"https://api.github.com/users/PingusPepan/repos","events_url":"https://api.github.com/users/PingusPepan/events{/privacy}","received_events_url":"https://api.github.com/users/PingusPepan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/magento/magento2/labels/2.1.x","name":"2.1.x","color":"fbca04"},{"url":"https://api.github.com/repos/magento/magento2/labels/bug%20report","name":"bug report","color":"d93f0b"},{"url":"https://api.github.com/repos/magento/magento2/labels/Catalog","name":"Catalog","color":"1d76db"},{"url":"https://api.github.com/repos/magento/magento2/labels/Frontend","name":"Frontend","color":"1d76db"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-08-31T09:29:12Z","updated_at":"2016-09-03T11:36:52Z","closed_at":null,"body":"I have this issue since Magento 2.1. Magento 2.0 worked fine.\r\n\r\nWhen I try to add a product or edit existing one, the page loads fine and then the Ajax spinner starts spinning. When it reaches the file `vendor/magento/module-ui/view/base/web/templates/grid/filters/elements/ui-select-optgroup.html` (`pub/static/adminhtml/Magento/backend/en_US/Magento_Ui/templates/grid/filters/elements/ui-select-optgroup.html` in browser) it stops spinning and hangs the browser for few minutes. I suspect this is because of categories listing.\r\nWe have 11 root categories, each containing multiple categories with subcategories.\r\nI have tried Firefox and Chrome, both with the same result.\r\nI have Intel core i5 and 16GB RAM in my computer and the browser still freezes. People usually working in the admin do not have those machines and they have to kill the browser. For us is the admin completely unusable in current state.\r\n\r\n### Preconditions\r\nMagento version 2.1.1 CE (2.1.0 acts the same)\r\nPHP: 7.0.10 with opcache\r\nMySQL: 10.0.20-MariaDB\r\nSession storage: Redis\r\nCache: Redis\r\nFPC: Redis (no Varnish)\r\n\r\nAll Magento cache is enabled\r\n\r\n`catalog_category_entity` table has **4712** rows.\r\n\r\n### Steps to reproduce\r\n1. Prepare >10 root categories\r\n2. Fill with many categories and subcategories\r\n3. Try to add or edit product\r\n\r\n### Expected result\r\n1. Not freezing the browser\r\n\r\n### Actual result\r\n1. Freezed browser\r\n"},"comment":{"url":"https://api.github.com/repos/magento/magento2/issues/comments/244541587","html_url":"https://github.com/magento/magento2/issues/6413#issuecomment-244541587","issue_url":"https://api.github.com/repos/magento/magento2/issues/6413","id":244541587,"user":{"login":"PingusPepan","id":2404541,"avatar_url":"https://avatars.githubusercontent.com/u/2404541?v=3","gravatar_id":"","url":"https://api.github.com/users/PingusPepan","html_url":"https://github.com/PingusPepan","followers_url":"https://api.github.com/users/PingusPepan/followers","following_url":"https://api.github.com/users/PingusPepan/following{/other_user}","gists_url":"https://api.github.com/users/PingusPepan/gists{/gist_id}","starred_url":"https://api.github.com/users/PingusPepan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PingusPepan/subscriptions","organizations_url":"https://api.github.com/users/PingusPepan/orgs","repos_url":"https://api.github.com/users/PingusPepan/repos","events_url":"https://api.github.com/users/PingusPepan/events{/privacy}","received_events_url":"https://api.github.com/users/PingusPepan/received_events","type":"User","site_admin":false},"created_at":"2016-09-03T11:36:52Z","updated_at":"2016-09-03T11:36:52Z","body":"@philipvandebriel The real culprit in your case is `ui-select-optgroup.html` though. After it loaded, it started crunching data and that's why it stalled loading of another resources. Try manually editing the `ui-select-optgroup.html` file and make it empty. Then try loading the page again. For me, when the file was empty, it was working just fine (except that I was missing functionality provided by the file)"}}
{"actor":{"display_login":"PingusPepan"}}