diff options
author | Thomas Lange <code@nerdmind.de> | 2016-04-22 21:17:53 +0200 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2016-04-22 21:17:53 +0200 |
commit | 7a49346f8069d814c51af2e0cefcc6e66fe9826e (patch) | |
tree | 1de48b8be3e12ec4ea8d6695f99217d39de26ebf /static/delayJS.php | |
parent | 74d01962a6f77eb2b8138864f18ed53eb136c432 (diff) | |
download | bigpipe-7a49346f8069d814c51af2e0cefcc6e66fe9826e.tar.gz bigpipe-7a49346f8069d814c51af2e0cefcc6e66fe9826e.tar.xz bigpipe-7a49346f8069d814c51af2e0cefcc6e66fe9826e.zip |
Multiple updates with async demo.
Diffstat (limited to 'static/delayJS.php')
-rwxr-xr-x | static/delayJS.php | 36 |
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");
|