aboutsummaryrefslogtreecommitdiffstats
path: root/static/delayJS.php
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2016-04-22 21:17:53 +0200
committerThomas Lange <code@nerdmind.de>2016-04-22 21:17:53 +0200
commit7a49346f8069d814c51af2e0cefcc6e66fe9826e (patch)
tree1de48b8be3e12ec4ea8d6695f99217d39de26ebf /static/delayJS.php
parent74d01962a6f77eb2b8138864f18ed53eb136c432 (diff)
downloadbigpipe-7a49346f8069d814c51af2e0cefcc6e66fe9826e.tar.gz
bigpipe-7a49346f8069d814c51af2e0cefcc6e66fe9826e.tar.xz
bigpipe-7a49346f8069d814c51af2e0cefcc6e66fe9826e.zip
Multiple updates with async demo.
Diffstat (limited to 'static/delayJS.php')
-rwxr-xr-xstatic/delayJS.php36
1 files changed, 18 insertions, 18 deletions
diff --git a/static/delayJS.php b/static/delayJS.php
index 96e46c5..b4af48d 100755
--- a/static/delayJS.php
+++ b/static/delayJS.php
@@ -1,18 +1,18 @@
-<?php
-#====================================================================================================
-# Disable cache
-#====================================================================================================
-header('Cache-Control: no-cache, no-store, must-revalidate');
-
-#====================================================================================================
-# Set Content-Type
-#====================================================================================================
-header('Content-Type: text/javascript');
-
-#====================================================================================================
-# Simulate long loading time
-#====================================================================================================
-usleep(intval(rand(10, 40).'0000'));
-?>
-
-console.log("EXTERNAL: Delayed javascript resource loaded");
+<?php
+#===============================================================================
+# Disable cache
+#===============================================================================
+header('Cache-Control: no-cache, no-store, must-revalidate');
+
+#===============================================================================
+# Set Content-Type
+#===============================================================================
+header('Content-Type: text/javascript');
+
+#===============================================================================
+# Simulate long loading time
+#===============================================================================
+usleep(intval(rand(10, 40).'0000'));
+?>
+
+console.log("EXTERNAL: Delayed javascript resource loaded");