Skip to content

Commit fdaee7f

Browse files
authored
Update README.md
1 parent 8aace72 commit fdaee7f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ async function setup() {
9393
}
9494
```
9595

96+
If it takes a while to load the image, the sketch will be "paused" on the line `img = await loadImage('/assets/bricks.jpg');` - once the image is loaded, it will resume.
97+
9698
## …using registerPreloadMethod in a addon or library
9799

98100
If your addon built with p5.js 1.x uses `registerPreloadMethod` such as in this example from [p5.sound.js](https://github.com/processing/p5.sound.js):

0 commit comments

Comments
 (0)