{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/thimble.webmaker.org/issues/1286","labels_url":"https://api.github.com/repos/mozilla/thimble.webmaker.org/issues/1286/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/thimble.webmaker.org/issues/1286/comments","events_url":"https://api.github.com/repos/mozilla/thimble.webmaker.org/issues/1286/events","html_url":"https://github.com/mozilla/thimble.webmaker.org/issues/1286","id":119984070,"number":1286,"title":"The live-reload/preview feature has perfomance issues while typing long JS files","user":{"login":"soapdog","id":23247,"avatar_url":"https://avatars.githubusercontent.com/u/23247?v=3","gravatar_id":"","url":"https://api.github.com/users/soapdog","html_url":"https://github.com/soapdog","followers_url":"https://api.github.com/users/soapdog/followers","following_url":"https://api.github.com/users/soapdog/following{/other_user}","gists_url":"https://api.github.com/users/soapdog/gists{/gist_id}","starred_url":"https://api.github.com/users/soapdog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soapdog/subscriptions","organizations_url":"https://api.github.com/users/soapdog/orgs","repos_url":"https://api.github.com/users/soapdog/repos","events_url":"https://api.github.com/users/soapdog/events{/privacy}","received_events_url":"https://api.github.com/users/soapdog/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-02T16:41:07Z","updated_at":"2015-12-02T17:54:17Z","closed_at":null,"body":"Thimble reloads/previews the project every couple keystrokes. When you're editing a JS file this leads to hundreds of cascading JS erros in the console which leads to performance degradation on the UI and more.\r\n\r\nWe could tweak that algorithm to refresh at a longer interval when editing JS or maybe even only refresh when switching files back to an HTML or pressing a play button.\r\n\r\nI was working on https://d157rqmxrxj6ey.cloudfront.net/andregarzia/17163/ and had to type a 100+ JS file there and Thimble got very slow. It was due to errors exploding silently all over the place.\r\n\r\nAnyone has any thought regarding that? How can we solve it?"},"comment":{"url":"https://api.github.com/repos/mozilla/thimble.webmaker.org/issues/comments/161380098","html_url":"https://github.com/mozilla/thimble.webmaker.org/issues/1286#issuecomment-161380098","issue_url":"https://api.github.com/repos/mozilla/thimble.webmaker.org/issues/1286","id":161380098,"user":{"login":"flukeout","id":25212,"avatar_url":"https://avatars.githubusercontent.com/u/25212?v=3","gravatar_id":"","url":"https://api.github.com/users/flukeout","html_url":"https://github.com/flukeout","followers_url":"https://api.github.com/users/flukeout/followers","following_url":"https://api.github.com/users/flukeout/following{/other_user}","gists_url":"https://api.github.com/users/flukeout/gists{/gist_id}","starred_url":"https://api.github.com/users/flukeout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flukeout/subscriptions","organizations_url":"https://api.github.com/users/flukeout/orgs","repos_url":"https://api.github.com/users/flukeout/repos","events_url":"https://api.github.com/users/flukeout/events{/privacy}","received_events_url":"https://api.github.com/users/flukeout/received_events","type":"User","site_admin":false},"created_at":"2015-12-02T17:54:16Z","updated_at":"2015-12-02T17:54:16Z","body":"@soapdog You can disable Javascript in the gear menu in the editor. This will stop it from auto running.\r\n\r\n![image](https://cloud.githubusercontent.com/assets/25212/11539163/8d10abc0-98da-11e5-9014-007b05062b33.png)\r\n\r\nLet us know if this solves your problem.\r\n\r\nThe problem I anticipate is that when Javascript is disabled, it will be hard to test because you'll have to use the menu to turn it on, reload the preview, and then turn it back on again after for more editing."}}