Hi!
I wanna create my one website and therefore want to learn programming with p5.js. I have e question, however. The p5.js library files have together have a size of eight MB. Does this mean, these 8 MB have to downloaded from the server to the user when the website is called up by the user?
If you look in index.html, you’ll notice that it links to the file p5.js. If you would like to use the minified version (compressed for faster page loading), change the link to p5.min.js.
<script src="../p5.min.js"></script>
That minified file is less than a megabyte in size. Adapt the link to the location from which you serve the file.
EDIT (October 23, 2021):
Depending upon the particulars of a given sketch that you host, the user might only need to be served the following:
About the average page weight of webpages today, here’s an interesting blog post about it:
On average it’s about 7MB and yes it needs to be transferred from the server to the client with HTTP. I don’t know if this number includes compression but most of the time it’s compressed by the server using gzip or Broti which reduces bandwidth usage