Created
January 31, 2012 00:16
-
-
Save meelash/1707733 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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