I get nothing wiht this, if i refresh fast i cant see the text. bgImage(function() { setText(); }); However.. If i do it like this, and refresh the page quickly, i can see the text. function ready() { canvasInit(); bgImage(setText()); }