Including js file using <script> tag


#1

Hi all, I’m sorry for asking this but I need to know how do I properly include my javascript files using <script src=myown.js>
I’ve seen some sample codes and when I try I got an error “jQuery is not defined” . Thanks!


#2

I don’t use jQuery but that sounds similar to:


#3

I found that this works:

<script>
    require('foo');
</script>

Maybe it’s an idea.