# Reference is Null, p5 load order?

**URL:** <https://discourse.processing.org/t/reference-is-null-p5-load-order/17330>\
**Category:** Beginners\
**Created:** [January 25, 2020, 6:13pm UTC](https://discourse.processing.org/t/reference-is-null-p5-load-order/17330 "2020-01-25T18:13:27Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![kfrajer](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kfrajer/32/196_2.png) [@kfrajer](https://discourse.processing.org/u/kfrajer)\
**Post date:** [January 25, 2020, 9:26pm UTC](https://discourse.processing.org/t/reference-is-null-p5-load-order/17330/3 "2020-01-25T21:26:54Z")

</div>

This could be relevant: [[SOLVED] Accessing html elements defined into .html file?](https://discourse.processing.org/t/solved-accessing-html-elements-defined-into-html-file/2701)

Make sure you are including p5.dom.js as it is not clear in the code you provided.

Kf

---

_[View the full topic](https://discourse.processing.org/t/reference-is-null-p5-load-order/17330)._
