We are about to switch to a new forum software. Until then we have removed the registration on this forum.
For larger sketches it would be really handy to be able to have parts of it (configuration data, for example) in a separate file. But I haven't found any way to do this. The sketch file doesn't seem to be able to successfully reference another file. I have tried using a script tag on the main html page, followed by the sketch file, but the sketch file can't seem to see it.
I'm not against learning and using something like require.js if that will solve the problem. But because of the nature of p5.js I'm not sure that would be a solution.