{"action":"created","issue":{"url":"https://api.github.com/repos/Stuk/jszip/issues/280","repository_url":"https://api.github.com/repos/Stuk/jszip","labels_url":"https://api.github.com/repos/Stuk/jszip/issues/280/labels{/name}","comments_url":"https://api.github.com/repos/Stuk/jszip/issues/280/comments","events_url":"https://api.github.com/repos/Stuk/jszip/issues/280/events","html_url":"https://github.com/Stuk/jszip/issues/280","id":149777660,"number":280,"title":"The version 3.0.0 is not async in chrome","user":{"login":"CVex2150J","id":7817285,"avatar_url":"https://avatars.githubusercontent.com/u/7817285?v=3","gravatar_id":"","url":"https://api.github.com/users/CVex2150J","html_url":"https://github.com/CVex2150J","followers_url":"https://api.github.com/users/CVex2150J/followers","following_url":"https://api.github.com/users/CVex2150J/following{/other_user}","gists_url":"https://api.github.com/users/CVex2150J/gists{/gist_id}","starred_url":"https://api.github.com/users/CVex2150J/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CVex2150J/subscriptions","organizations_url":"https://api.github.com/users/CVex2150J/orgs","repos_url":"https://api.github.com/users/CVex2150J/repos","events_url":"https://api.github.com/users/CVex2150J/events{/privacy}","received_events_url":"https://api.github.com/users/CVex2150J/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-04-20T14:04:34Z","updated_at":"2016-05-02T19:34:16Z","closed_at":null,"body":"I was using jszip 2.6.0 for at least 1 years and it work great with a minus problem(\"stopping\" javascript execution for a while) but it was \"ok\". Now with the chrome upgrade 50.0.2661.75 m I get \"aw snap\" page most of the time (I zip a large string therefore stalling the javascript for more than 20 sec of work).\r\nI'm really happy to see v3.0.0 with all thoses async methods. But during my tests for the last 2 days to solve my \"aw snap\" problem I found that on chrome 50 and using the latest build and async functions... my javascript block at generateAsync()\r\n\r\nI did a test on NodeJS and it seems to work ok (not 100% sure)\r\n\r\nThere is a screenShot of chrome devTool. I tried to generate a zip with 22 files in it (~21MB of data). The flush function block all javascript execution for 4.73s. \r\n\r\nI will use multiple zips generation as a work around for the moment.\r\n\r\n![jszipnotasync](https://cloud.githubusercontent.com/assets/7817285/14676967/a19a4026-06dd-11e6-9adf-d245036a5fdc.png)"},"comment":{"url":"https://api.github.com/repos/Stuk/jszip/issues/comments/216338269","html_url":"https://github.com/Stuk/jszip/issues/280#issuecomment-216338269","issue_url":"https://api.github.com/repos/Stuk/jszip/issues/280","id":216338269,"user":{"login":"dduponchel","id":30335,"avatar_url":"https://avatars.githubusercontent.com/u/30335?v=3","gravatar_id":"","url":"https://api.github.com/users/dduponchel","html_url":"https://github.com/dduponchel","followers_url":"https://api.github.com/users/dduponchel/followers","following_url":"https://api.github.com/users/dduponchel/following{/other_user}","gists_url":"https://api.github.com/users/dduponchel/gists{/gist_id}","starred_url":"https://api.github.com/users/dduponchel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dduponchel/subscriptions","organizations_url":"https://api.github.com/users/dduponchel/orgs","repos_url":"https://api.github.com/users/dduponchel/repos","events_url":"https://api.github.com/users/dduponchel/events{/privacy}","received_events_url":"https://api.github.com/users/dduponchel/received_events","type":"User","site_admin":false},"created_at":"2016-05-02T19:34:16Z","updated_at":"2016-05-02T19:34:16Z","body":"@CVex2150J I updated the plunker [here](http://plnkr.co/edit/FuGPUvRQSqbWwRUEI8Pb?p=preview) to use https://rawgit.com/dduponchel/jszip/fix_280_dist/dist/jszip.js instead of the v3.0.0 file and I get the expected result (I get the bug with the old plunker, not with the new one):\r\n![issue280](https://cloud.githubusercontent.com/assets/30335/14965091/bb05e664-10ab-11e6-8cbb-6596058fbeec.png)\r\n\r\nSame with nodejs. With the following script\r\n```js\r\nvar JSZip = require(\"./jszip_pr288\");\r\nvar fs = require(\"fs\");\r\nvar tickCount = 0;\r\nsetInterval(function () {\r\n    console.log(\"tick\", tickCount);\r\n    tickCount++;\r\n}, 200);\r\n\r\nvar zip = new JSZip();\r\nfor (var i = 1; i <= 20; i++) {\r\n    // 20 files, generated with\r\n    // for i in `seq 1 20`; do\r\n    //   dd if=/dev/urandom of=$i.data bs=1M count=$i\r\n    // done\r\n    zip.file(\"\" + i, fs.readFileSync(i + \".data\"));\r\n}\r\n\r\nconsole.log(\"start\");\r\nzip.generateAsync({type:\"arraybuffer\", compression:\"DEFLATE\"})\r\n.then(buffer => console.log(buffer));\r\n```\r\nI get regular `tick` in the console.\r\n\r\nHow do you reproduce your issue with the updated files from the pull request ?\r\n"}}