Skip to content

[p5.js 2.0] Add documentation / tutorial on how to do parallel loading with Promise.all  #7674

Open
@quinton-ashley

Description

@quinton-ashley

Increasing access

Make it easier for beginners to load multiple assets at once without using Promise.all

Most appropriate sub-area of p5.js?

  • Accessibility
  • Color
  • Core/Environment/Rendering
  • Data
  • DOM
  • Events
  • Image
  • IO
  • Math
  • Typography
  • Utilities
  • WebGL
  • Build process
  • Unit testing
  • Internationalization
  • Friendly errors
  • Other (specify if possible)

Feature enhancement details

As suggested by @mattdesl , @mvicky2592 , and @nickmcintyre

#6767 (comment)

It'd be great for p5 v2 to have an async load function for loading files of any supported type in parallel.

I've already implemented this in q5.js:

https://q5js.org/learn/#load

If desired, feel free to use q5's source as a reference for implementing it in p5 v2.

https://github.com/q5js/q5.js/blob/bf0eb797111238fbd2e1482370737772de56dbbc/src/q5-util.js#L36

Metadata

Metadata

Assignees

Type

Projects

Status

In Progress

Status

In Progress

Relationships

None yet

Development

No branches or pull requests

Issue actions