{"action":"created","issue":{"url":"https://api.github.com/repos/processing/p5.js/issues/1350","repository_url":"https://api.github.com/repos/processing/p5.js","labels_url":"https://api.github.com/repos/processing/p5.js/issues/1350/labels{/name}","comments_url":"https://api.github.com/repos/processing/p5.js/issues/1350/comments","events_url":"https://api.github.com/repos/processing/p5.js/issues/1350/events","html_url":"https://github.com/processing/p5.js/issues/1350","id":145408939,"number":1350,"title":"using preload() triggers warning messages","user":{"login":"lmccart","id":191056,"avatar_url":"https://avatars.githubusercontent.com/u/191056?v=3","gravatar_id":"","url":"https://api.github.com/users/lmccart","html_url":"https://github.com/lmccart","followers_url":"https://api.github.com/users/lmccart/followers","following_url":"https://api.github.com/users/lmccart/following{/other_user}","gists_url":"https://api.github.com/users/lmccart/gists{/gist_id}","starred_url":"https://api.github.com/users/lmccart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lmccart/subscriptions","organizations_url":"https://api.github.com/users/lmccart/orgs","repos_url":"https://api.github.com/users/lmccart/repos","events_url":"https://api.github.com/users/lmccart/events{/privacy}","received_events_url":"https://api.github.com/users/lmccart/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-02T19:40:11Z","updated_at":"2016-04-02T20:17:23Z","closed_at":null,"body":"Here's a sample:\r\n\r\n```javascript\r\nvar img;\r\n\r\nfunction preload() {\r\n  img = loadImage(\"assets/rockies.jpg\")\r\n}\r\n\r\nfunction setup() {\r\n  image(img, 0, 0);\r\n}\r\n```\r\n\r\nThe code runs fine but the console output reads:\r\n```\r\nYou just changed the value of \"loadJSON\", which was a p5 function. This could cause problems later if you're not careful.\r\np5.js:12099 You just changed the value of \"loadImage\", which was a p5 function. This could cause problems later if you're not careful.\r\np5.js:12099 You just changed the value of \"loadStrings\", which was a p5 function. This could cause problems later if you're not careful.\r\np5.js:12099 You just changed the value of \"loadXML\", which was a p5 function. This could cause problems later if you're not careful.\r\np5.js:12099 You just changed the value of \"loadTable\", which was a p5 function. This could cause problems later if you're not careful.\r\np5.js:12099 You just changed the value of \"loadFont\", which was a p5 function. This could cause problems later if you're not careful.\r\n```\r\n\r\nI'm guessing we just need to account for the preload maneuvering in the recent overwriting warnings we added. cc @toolness."},"comment":{"url":"https://api.github.com/repos/processing/p5.js/issues/comments/204796263","html_url":"https://github.com/processing/p5.js/issues/1350#issuecomment-204796263","issue_url":"https://api.github.com/repos/processing/p5.js/issues/1350","id":204796263,"user":{"login":"toolness","id":124687,"avatar_url":"https://avatars.githubusercontent.com/u/124687?v=3","gravatar_id":"","url":"https://api.github.com/users/toolness","html_url":"https://github.com/toolness","followers_url":"https://api.github.com/users/toolness/followers","following_url":"https://api.github.com/users/toolness/following{/other_user}","gists_url":"https://api.github.com/users/toolness/gists{/gist_id}","starred_url":"https://api.github.com/users/toolness/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toolness/subscriptions","organizations_url":"https://api.github.com/users/toolness/orgs","repos_url":"https://api.github.com/users/toolness/repos","events_url":"https://api.github.com/users/toolness/events{/privacy}","received_events_url":"https://api.github.com/users/toolness/received_events","type":"User","site_admin":false},"created_at":"2016-04-02T20:17:23Z","updated_at":"2016-04-02T20:17:23Z","body":"This is interesting, I didn't know anything about this preload maneuvering stuff. Time to learn! :grin: "}}