new p5(function (p5) { p5.setup = function(){ p5.noCanvas() console.log('p5 instance loaded') } p5.draw = function(){ // } }) window.onload = function(){ console.log('DOM loaded, sketch.js loaded') }