Skip to content

Instantly share code, notes, and snippets.

@meelash
Created January 31, 2012 00:16
Show Gist options
  • Select an option

  • Save meelash/1707733 to your computer and use it in GitHub Desktop.

Select an option

Save meelash/1707733 to your computer and use it in GitHub Desktop.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Test</title>
<meta name="description" content="">
<meta name="author" content="">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body class="home loading">
<script type="text/javascript" src="require.js"></script>
<script type="text/javascript">
require.config({
waitSeconds: 15,
});
require(["test.js"]);
</script>
</body>
</html>
var Test;
Test = (function() {
function Test() {}
require(['foo.js']);
setTimeout((function() {
return require(['bar.js']);
}), 5000);
return Test;
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment