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. --- include/pagelets.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'include') diff --git a/include/pagelets.php b/include/pagelets.php index 412e530..62c3ed9 100644 --- a/include/pagelets.php +++ b/include/pagelets.php @@ -4,6 +4,19 @@ #=============================================================================== $DEBUGGING = TRUE; +#=============================================================================== +# Check if BigPipe should be disabled +#=============================================================================== +if(isset($_GET['bigpipe']) AND $_GET['bigpipe'] === '0') { + # You can use this method to disable the pipeline for Googlebot or something + # else. If BigPipe is "disabled", then all pagelets will be rendered without + # being pipelined through the javascript library. The content of the pagelet + # will be present at the original position within the HTML response (and all + # external stylesheets and javascripts will be displayed as simple or + #