Skip to content

Improvement for 'loading...' div element when preload is used #3625

Closed as duplicate of#6795
@Ajayneethikannan

Description

@Ajayneethikannan

Nature of issue?

  • Existing feature enhancement

appropriate sub-area of p5.js?

  • Core/Environment/Rendering

Which platform were you using when you encountered this?

  • Mobile/Tablet (touch devices)
  • Desktop/Laptop
  • Others (specify if possible) - Device independent

Details about the bug:

  • p5.js version: 0.7.3
  • Web browser and version: Browser independent
  • Operating System: OS independent
  • Steps to reproduce this:

https://editor.p5js.org/TheSkepticSniper/sketches/Hpintvgpy - This sketch can be used for reference

Feature enhancement details:

Currently , if any load method fails in preload function, the sketch does not proceed to setup and draw due to preload's blocking nature, but the text when preload is executing remains saying
'loading...'
It would be nice to improve the feature , by making the text box say
'some error has occurred'
when any method fails in the preload function.

Would love to hear suggestions on this,
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Completed

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions