From ca52e765e9dbd9407346b574cada9a93720e535d Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Sat, 3 Feb 2018 20:16:21 +0100 Subject: Move check if BigPipe should be disabled into the pagelets.php This commit moves the if condition, which checks if the pipelining mode of BigPipe should be disabled, directly into the pagelets.php to reduce duplicate code within index.php and async.php. --- async.php | 9 --------- 1 file changed, 9 deletions(-) (limited to 'async.php') diff --git a/async.php b/async.php index e8e98da..8d46c89 100644 --- a/async.php +++ b/async.php @@ -20,15 +20,6 @@ spl_autoload_register(function($classname) { require_once sprintf($classpath, $classname); }); -#=============================================================================== -# Check if BigPipe should be disabled -#=============================================================================== -if(isset($_GET['bigpipe'])) { - - # You can use this method also to disable pipeline for Googlebot or something. - BigPipe\BigPipe::enabled($_GET['bigpipe']); -} - // Outsourced to avoid duplicate code in index.php and async.php require_once 'include/pagelets.php'; ?> -- cgit v1.2.3