When using goog.require
inside a <script>
tag to load a script, the specified files aren't loaded. For example:
<script>
goog.require('goog.dom');
var mydiv = goog.dom.$('foo');
</script>
Gives:
goog.dom is undefined
What's wrong with this usage?