I'm trying for the first time the Zurb Foundation 5 framework and I got this error: "Uncaught TypeError: Layer must be a document node foundation.min.js:8"
This happened because I had this in the :
<script type="text/javascript" src="libs/foundation.min.js"></script>
When I moved it to the body, the error is gone.
Why? am I missing something about javascript or is it a bug?