{"action":"created","issue":{"url":"https://api.github.com/repos/mholt/PapaParse/issues/206","labels_url":"https://api.github.com/repos/mholt/PapaParse/issues/206/labels{/name}","comments_url":"https://api.github.com/repos/mholt/PapaParse/issues/206/comments","events_url":"https://api.github.com/repos/mholt/PapaParse/issues/206/events","html_url":"https://github.com/mholt/PapaParse/issues/206","id":74023157,"number":206,"title":"warring:unresponsive script  A script on this page may be busy or....","user":{"login":"nenadfemic","id":6898640,"avatar_url":"https://avatars.githubusercontent.com/u/6898640?v=3","gravatar_id":"","url":"https://api.github.com/users/nenadfemic","html_url":"https://github.com/nenadfemic","followers_url":"https://api.github.com/users/nenadfemic/followers","following_url":"https://api.github.com/users/nenadfemic/following{/other_user}","gists_url":"https://api.github.com/users/nenadfemic/gists{/gist_id}","starred_url":"https://api.github.com/users/nenadfemic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nenadfemic/subscriptions","organizations_url":"https://api.github.com/users/nenadfemic/orgs","repos_url":"https://api.github.com/users/nenadfemic/repos","events_url":"https://api.github.com/users/nenadfemic/events{/privacy}","received_events_url":"https://api.github.com/users/nenadfemic/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mholt/PapaParse/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":19,"created_at":"2015-05-07T15:19:10Z","updated_at":"2015-05-08T08:41:10Z","closed_at":"2015-05-07T19:29:36Z","body":"Hi\r\n\r\nI get warring message when script work with big files:\r\nwarring:unresponsive script  A script on this page may be busy or....\r\n\r\nI put my code below text.\r\n\r\n```javascript\r\n<script src=\"http://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js\"></script>\r\n<script src=\"papaparse.js\"></script>\r\n<style>\r\n#results {\r\nwidth: 100%;\r\nborder-collapse: collapse;\r\n}\r\ntable, td {\r\nborder: 1px solid black;\r\n}\r\n\r\nth {\r\nbackground-color:orange;\r\nborder: 1px solid black;\r\n}\r\n\r\n</style>\r\n\r\n<script>\r\n  var data;\r\n\r\n  \tfunction handleFileSelect(evt)\r\n  \t{\r\n\t\tvar file = evt.target.files[0];\r\n\tPapa.parse(file,\r\n\t{\r\n\t\t\theader: true,\r\n\t\t\tdynamicTyping: false,\r\n\t\t\tworker: true, \r\n\t\t\tfastMode: true,\r\n\t\t\t\r\n\t\r\n\t\t\t\r\n\t\t\t\r\ncomplete: function(results)   //I was try with step instead of complete but without success\r\n\t\t\t{\r\n\t\t\t\tdata = results;\r\n\r\n//#########################################################################\r\n\t\t\t\t//alert(results.meta['fields'].length); //show defined number of header columns\r\n\t\t\t\tvar row = $(\"<tr/>\");\r\n\t\t\t\t\t$.each(results.meta['fields'], function(i) \r\n\t\t\t\t\t{\r\n\t\t\t\t\t\trow.append($(\"<th/>\").text(results.meta['fields'][i]));\r\n\t\t\t\t\t});\r\n\t\t\t\r\n\t\t\t\t\t$(\"#results tbody\").append(row); \r\n\t\t\t\t\t\r\n//#############################################################################\r\n\t\t\t\t\t///alert(results.data.length); //numbers of row\r\n\t\t\t\t\r\n\t\t\t\t\t$.each(results.data, function(i, el) \r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tvar row = $(\"<tr/>\");\r\n\t\t\t\t\t\trow.append($(\"<td/>\").text(i));\r\n\t\t\t\t\t\t\t$.each(el, function(j, cell) {\r\n\t\t\t\t\t\t\t\tif (cell !== \"\")\r\n\t\t\t\t\t\t\t\t\trow.append($(\"<td/>\").text(cell));\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t$(\"#results tbody\").append(row);\r\n\t\t\t\t\t});\r\n\t\t\t\t\t\r\n\t\t\t\t\tconsole.log(\"Finished input (async). Time:\", data);\r\n\t\t\t\t\t\r\n//###########################################################################\t\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n \r\n  $(document).ready(function(){\r\n  $(\"#csv-file\").change(handleFileSelect);\r\n  });\r\n</script>\r\n<input type=\"file\" id=\"csv-file\" name=\"files\"/>\r\n\r\n<div id=\"headers\"></div>\r\n<table id=\"results\">\r\n<tbody></tbody>\r\n</table>\r\n```"},"comment":{"url":"https://api.github.com/repos/mholt/PapaParse/issues/comments/100155008","html_url":"https://github.com/mholt/PapaParse/issues/206#issuecomment-100155008","issue_url":"https://api.github.com/repos/mholt/PapaParse/issues/206","id":100155008,"user":{"login":"nenadfemic","id":6898640,"avatar_url":"https://avatars.githubusercontent.com/u/6898640?v=3","gravatar_id":"","url":"https://api.github.com/users/nenadfemic","html_url":"https://github.com/nenadfemic","followers_url":"https://api.github.com/users/nenadfemic/followers","following_url":"https://api.github.com/users/nenadfemic/following{/other_user}","gists_url":"https://api.github.com/users/nenadfemic/gists{/gist_id}","starred_url":"https://api.github.com/users/nenadfemic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nenadfemic/subscriptions","organizations_url":"https://api.github.com/users/nenadfemic/orgs","repos_url":"https://api.github.com/users/nenadfemic/repos","events_url":"https://api.github.com/users/nenadfemic/events{/privacy}","received_events_url":"https://api.github.com/users/nenadfemic/received_events","type":"User","site_admin":false},"created_at":"2015-05-08T08:41:10Z","updated_at":"2015-05-08T08:41:10Z","body":"Ok, can you send me mail to put demo files and print screen.\r\n\r\n"}}