-
Notifications
You must be signed in to change notification settings - Fork 263
Open
Description
Would you consider a series of PRs that update the code to slightly more modern practices? Some are minor, some less so.
Examples might include
-
Remove all uses of
varforletandconstvaris basically considered bad practice at this point -
no need for `type="text/javascript"
this is not needed for script tags
-
stop using
window.onloadJust move your script tags to the bottom or use
defer -
consider using es6 modules for loading scripts
-
use
requestAnimationFrameinstead ofrequestAnimFrameThere's no need for the polyfill in 2021
-
put the shaders in multiline template strings
They've been in every browser since 2010 or earlier
-
get rid of "Oops, your browser doesn't support canvas"
There are no browser that don't support canvas in 2021
Metadata
Metadata
Assignees
Labels
No labels