diff --git a/files/en-us/web/api/canvas_api/tutorial/basic_usage/index.md b/files/en-us/web/api/canvas_api/tutorial/basic_usage/index.md index 07e2b3b43b16d95..2829a91cdf75273 100644 --- a/files/en-us/web/api/canvas_api/tutorial/basic_usage/index.md +++ b/files/en-us/web/api/canvas_api/tutorial/basic_usage/index.md @@ -103,7 +103,7 @@ Here is a minimalistic template, which we'll be using as a starting point for la const ctx = canvas.getContext("2d"); } } - draw(); + window.addEventListener("load", draw);