Skip to content

Instantly share code, notes, and snippets.

@robbypelssers
Created April 9, 2014 18:53
requirejs: requirejsdemo.html
<!DOCTYPE html>
<html>
<head>
<title>Demo html5 page</title>
<!-- data-main attribute tells require.js to load
scripts/app.js after require.js loads. -->
<script data-main="scripts/app" src="scripts/require.js"></script>
</head>
<body>
<h1>RequireJS demo</h1>
<div><button id="sayHi">Try me!!</button></div>
<div>languages</div>
<ul id="languages"> </ul>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment