com web/php: [beta] putting elephpants on the homepage only, so that all the images don't get loaded for function lookups since we need those pages to
be as fast loading as possible: include/footer.inc
| From: | Paul Dragoonis | Date: | Wed, 03 Jul 2013 16:45:21 +0000 |
| Subject: | com web/php: [beta] putting elephpants on the homepage only, so that all the images don't get loaded for function lookups since we need those pages to be as fast loading as possible: include/footer.inc |
||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-22764@lists.php.net to get a copy of this message | ||
Commit: fa43b62dc50f5adb4323dbfe1d022261c256503e
Author: Paul Dragoonis <dragoonis@gmail.com> Wed, 3 Jul 2013 17:45:21 +0100
Parents: c69950c4d0a0cb47a8e3f5189987518e394677cc
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=fa43b62dc50f5adb4323dbfe1d022261c256503e
Log:
[beta] putting elephpants on the homepage only, so that all the images don't get loaded for
function lookups since we need those pages to be as fast loading as possible
Changed paths:
M include/footer.inc
Diff:
diff --git a/include/footer.inc b/include/footer.inc
index 7e624e0..0dded3f 100644
--- a/include/footer.inc
+++ b/include/footer.inc
@@ -27,7 +27,7 @@
<?php
// if elephpants enabled, insert placeholder nodes
// to be populated with images via javascript.
- if (isset($config['elephpants'])) {
+ if (isset($config['elephpants']) && $_SERVER['REQUEST_URI'] ==
'/') {
print "<div class='elephpants'><div
class=images></div></div>";
}
?>