diff options
Diffstat (limited to 'static/delayJS.php')
-rw-r--r-- | static/delayJS.php | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/static/delayJS.php b/static/delayJS.php index b4af48d..51252b0 100644 --- 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"); |