I have a function "loadDays()" that should be executed when the body-section is loaded:
<body onload="loadDays()">
In <script>
I have my function loadDays()
:
<script>
function loadDays() {
// code
}
Now I added src="https://requirejs.org/docs/release/2.3.5/minified/require.js"
to the <script>
-tag, to make use of require
inside my function.
While it does recognize require
then, it throws a new error:
"Uncaught ReferenceError: loadDays is not defined
at onload
What am I missing?