<html>
<head>
<title>Hello</title>
</head>
<body>
<h1>Welcome</h1>
<script>
$(function() {
// $ is undefined
});
</script>
<script src="js/jquery.js"></script>
</body>
</html>
関数を実行する前に、ドキュメントが読み込まれ、jQuery が読み込まれるのを待つ方法はありますか?