Permalink
Browse files

- adjusted for localhost

- moved unneccessary code out of lib
  • Loading branch information...
1 parent 60d25da commit 8869fa08e2ec86b88e2d2b799bca6f1a0ad09d1f @elbart committed Aug 12, 2010
Showing with 9 additions and 7 deletions.
  1. +8 −0 async_rendering.html
  2. +0 −6 lib/loader.js
  3. +1 −1 node/delayed.js
View
@@ -3,6 +3,14 @@
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="lib/loader.js"></script>
+ <script type="text/javascript">
+ $(document).ready(function() {
+ loadScriptAsync('http://localhost:8124');
+ loadScriptAsync('http://localhost:8124');
+ loadScriptAsync('http://localhost:8124');
+ });
+ </script>
+
</head>
<body>
View
@@ -1,9 +1,3 @@
-$(document).ready(function() {
- loadScriptAsync('http://coding-geek.de:8124');
- loadScriptAsync('http://coding-geek.de:8124');
- loadScriptAsync('http://coding-geek.de:8124');
-});
-
var loadScriptAsync = function(url) {
var body = document.body;
var div = document.createElement('div');
View
@@ -4,4 +4,4 @@ http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/javascript'});
res.end('console.log("loading of potentially external script done...");');
}, 5000)
-}).listen(8124, "coding-geek.de");
+}).listen(8124, "localhost");

0 comments on commit 8869fa0

Please sign in to comment.