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-16198@lists.php.net to get a copy of this message | ||
Commit: d53ec23d06e508d43592025fd9690ffdd219f844
Author: Paul Dragoonis <dragoonis@gmail.com> Wed, 3 Jul 2013 17:45:21 +0100
Parents: 0a5f5891123b1e7259143257005c96de03db6050
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=d53ec23d06e508d43592025fd9690ffdd219f844
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>";
}
?>