{"action":"created","issue":{"url":"https://api.github.com/repos/processing/p5.js/issues/949","labels_url":"https://api.github.com/repos/processing/p5.js/issues/949/labels{/name}","comments_url":"https://api.github.com/repos/processing/p5.js/issues/949/comments","events_url":"https://api.github.com/repos/processing/p5.js/issues/949/events","html_url":"https://github.com/processing/p5.js/issues/949","id":108790887,"number":949,"title":"load* functions can't use callbacks in preload()","user":{"login":"Jared-Sprague","id":3926730,"avatar_url":"https://avatars.githubusercontent.com/u/3926730?v=3","gravatar_id":"","url":"https://api.github.com/users/Jared-Sprague","html_url":"https://github.com/Jared-Sprague","followers_url":"https://api.github.com/users/Jared-Sprague/followers","following_url":"https://api.github.com/users/Jared-Sprague/following{/other_user}","gists_url":"https://api.github.com/users/Jared-Sprague/gists{/gist_id}","starred_url":"https://api.github.com/users/Jared-Sprague/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jared-Sprague/subscriptions","organizations_url":"https://api.github.com/users/Jared-Sprague/orgs","repos_url":"https://api.github.com/users/Jared-Sprague/repos","events_url":"https://api.github.com/users/Jared-Sprague/events{/privacy}","received_events_url":"https://api.github.com/users/Jared-Sprague/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-09-29T04:09:12Z","updated_at":"2015-10-02T05:07:28Z","closed_at":null,"body":"I know only load functions should be in `preload()`, but are success callbacks blocked by design too?\r\n\r\n```javaScript\r\nfunction preload() {  // preload() runs once\r\n  img = loadImage('assets/laDefense.jpg', function() {console.log('loaded');});\r\n}\r\n\r\n// setup() will never run\r\n```"},"comment":{"url":"https://api.github.com/repos/processing/p5.js/issues/comments/144922589","html_url":"https://github.com/processing/p5.js/issues/949#issuecomment-144922589","issue_url":"https://api.github.com/repos/processing/p5.js/issues/949","id":144922589,"user":{"login":"Jared-Sprague","id":3926730,"avatar_url":"https://avatars.githubusercontent.com/u/3926730?v=3","gravatar_id":"","url":"https://api.github.com/users/Jared-Sprague","html_url":"https://github.com/Jared-Sprague","followers_url":"https://api.github.com/users/Jared-Sprague/followers","following_url":"https://api.github.com/users/Jared-Sprague/following{/other_user}","gists_url":"https://api.github.com/users/Jared-Sprague/gists{/gist_id}","starred_url":"https://api.github.com/users/Jared-Sprague/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jared-Sprague/subscriptions","organizations_url":"https://api.github.com/users/Jared-Sprague/orgs","repos_url":"https://api.github.com/users/Jared-Sprague/repos","events_url":"https://api.github.com/users/Jared-Sprague/events{/privacy}","received_events_url":"https://api.github.com/users/Jared-Sprague/received_events","type":"User","site_admin":false},"created_at":"2015-10-02T05:07:28Z","updated_at":"2015-10-02T05:07:28Z","body":"@lmccart I added a bunch of new unit tests for loadFont and loadImage that tests calling these functions in preload with and without success callbacks.  There was actually a TODO in the font_loading.js unit test from @dhowe that said `// TODO: actually test loading from within preload`.  Well now that's done!"}}