# Linking classes between files outside of p5js web editor

**URL:** https://discourse.processing.org/t/linking-classes-between-files-outside-of-p5js-web-editor/42048
**Category:** Beginners
**Created:** [May 22, 2023, 5:47am UTC](https://discourse.processing.org/t/linking-classes-between-files-outside-of-p5js-web-editor/42048 "2023-05-22T05:47:44Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)
#### Post date: [May 22, 2023, 6:21pm UTC](https://discourse.processing.org/t/linking-classes-between-files-outside-of-p5js-web-editor/42048/5 "2023-05-22T18:21:57Z")

</div>

> [@Shared library for simple functions](https://discourse.processing.org/t/shared-library-for-simple-functions/18374/4):
>
> The “index.html” file can be written as short as this: cowboy_hat_face \<script src=https://cdn.JsDelivr.net/npm/p5\>\</script\> \<script src=https://po4599.GitHub.io/javascript/grid.js\>\</script\> \<script src=sketch.js\>\</script\> Take another look at the short “index.html” above and you won’t spot any quotes or anything like it! stuck_out_tongue How about instead coding your “grid.js” library in such a way that it seamlessly injects itself into the p5js library as part of its API? …

---

_[View the full topic](https://discourse.processing.org/t/linking-classes-between-files-outside-of-p5js-web-editor/42048)._
