# Developing with Javascript - minimal example not working

**URL:** <https://discourse.bokeh.org/t/developing-with-javascript-minimal-example-not-working/6592>\
**Category:** Community Support\
**Tags:** bokehjs\
**Created:** [October 26, 2020, 7:44am UTC](https://discourse.bokeh.org/t/developing-with-javascript-minimal-example-not-working/6592 "2020-10-26T07:44:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eliav\_Buchnik](https://discourse.bokeh.org/user_avatar/discourse.bokeh.org/eliav_buchnik/32/2782_2.png) [@Eliav\_Buchnik](https://discourse.bokeh.org/u/Eliav_Buchnik)\
**Post date:** [October 26, 2020, 7:44am UTC](https://discourse.bokeh.org/t/developing-with-javascript-minimal-example-not-working/6592/1 "2020-10-26T07:44:59Z")

</div>

Hello all!

I am a Python developer exploring Bokeh JS capabilities so apologies in advance if I mistaken in something very basic.

Copy & pasted the [minimal example](https://docs.bokeh.org/en/2.2.3/docs/user_guide/bokehjs.html?highlight=javascript%20development#minimal-example) and attempted to open with chrome browser.

1. I had to remove the “integrity” and “crossorigin” to load the libraries.
2. After performing step 1 I get the following error:  
Uncaught (in promise) TypeError: Cannot read property ‘classList’ of null  
at r (bokeh-2.2.3.min.js:572)  
at Object.t.add\_document\_standalone (bokeh-2.2.3.min.js:572)  
at Object.r.show (bokeh-api-2.2.3.min.js:51)  
at html\_bokeh.html:36

* * *

Thank you for the help!

## Full example:

Complete Example

---

<div class="post-metadata">

**Author:** ![p-himik](https://discourse.bokeh.org/user_avatar/discourse.bokeh.org/p-himik/32/4010_2.png) [@p-himik](https://discourse.bokeh.org/u/p-himik)\
**Post date:** [October 26, 2020, 8:06am UTC](https://discourse.bokeh.org/t/developing-with-javascript-minimal-example-not-working/6592/2 "2020-10-26T08:06:36Z")

</div>

The example is indeed wrong. You can fix it locally by moving the whole last script tag inside the `body`.

---

<div class="post-metadata">

**Author:** ![p-himik](https://discourse.bokeh.org/user_avatar/discourse.bokeh.org/p-himik/32/4010_2.png) [@p-himik](https://discourse.bokeh.org/u/p-himik)\
**Post date:** [October 26, 2020, 8:12am UTC](https://discourse.bokeh.org/t/developing-with-javascript-minimal-example-not-working/6592/3 "2020-10-26T08:12:00Z")

</div>

Created [[BUG] BokehJS minimal example is not working · Issue #10599 · bokeh/bokeh · GitHub](https://github.com/bokeh/bokeh/issues/10599)

---

<div class="post-metadata">

**Author:** ![Eliav\_Buchnik](https://discourse.bokeh.org/user_avatar/discourse.bokeh.org/eliav_buchnik/32/2782_2.png) [@Eliav\_Buchnik](https://discourse.bokeh.org/u/Eliav_Buchnik)\
**Post date:** [October 26, 2020, 8:20am UTC](https://discourse.bokeh.org/t/developing-with-javascript-minimal-example-not-working/6592/4 "2020-10-26T08:20:03Z")

</div>

Works.  
Thank you!

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads.bokeh.org/original/2X/1/14eb24f9e10e4e9b78e3f10f66c04ffa96446e5a.svg) [@system](https://discourse.bokeh.org/u/system)\
**Post date:** [July 21, 2021, 9:29pm UTC](https://discourse.bokeh.org/t/developing-with-javascript-minimal-example-not-working/6592/5 "2021-07-21T21:29:23Z")

</div>


