tpjs/tpjs — comment on commit 38098b9091e39f6f4ba296170c719857c87cb03a
File: web/imageLoading.js line 3
By lmh:

This is insufficient for image loading, setting Image.src triggers an async GET request to load the image, i.e. might get to a drawImage before the image has been downloaded if its big/slow.
See the requirejs image plugin