diff options
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");
|