Skip to content

Best Practice

James Hancock edited this page Feb 1, 2019 · 1 revision

1. Include the library script at the bottom of your HTML body, followed by the script that uses it.

<head>...</head>
<body>
  <audio controls id="audioPlayer"></audio>
  ...
  ...
  <script src="bars.min.js"></script>
  <script src="myMusicVisualiser.js></script>
</body>

See an editable example of the library in action on CodePen.

Clone this wiki locally