Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid console warnings in empty-example files. #5068

Closed
1 task done
meodai opened this issue Mar 7, 2021 · 1 comment · Fixed by peilingjiang/b5#91
Closed
1 task done

Avoid console warnings in empty-example files. #5068

meodai opened this issue Mar 7, 2021 · 1 comment · Fixed by peilingjiang/b5#91

Comments

@meodai
Copy link
Contributor

meodai commented Mar 7, 2021

How would this new feature help [increase access]

It would make it less scary for programming noobs to get started

Most appropriate sub-area of p5.js?

  • Other: Fresh Developper accessibility

Feature enhancement details:

The empty-example includes empty-example p5.sound. In most modern browsers this triggers a warning in the console. Because users need to interact with the page first. To people used to web-developpement this is nothing scary. But for people getting into programming this can be a bit intimidating.

This for example is from the coding train discord:
Screenshot 2021-03-07 at 22 19 49

If you want to keep the sound in there for example I would propose to:

a) comment it out in the html
or at least
b) use the non minified version. Because as you can see in the screenshot, some setups fail to create a source-map for it. And it just does not make sense to develop and debug with a minified file to me.
c) entirely remove it form the demo-file

@welcome
Copy link

welcome bot commented Mar 7, 2021

Welcome! 👋 Thanks for opening your first issue here! And to ensure the community is able to respond to your issue, be sure to follow the issue template if you haven't already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant