Re: 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: Date: Wed, 03 Jul 2013 16:49:50 +0000
Subject: Re: 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
References: 1  Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-16199@lists.php.net to get a copy of this message
They are loaded only once, no? The rest should hit the browser cache and everything is fine. -Hannes On Wed, Jul 3, 2013 at 9:45 AM, Paul Dragoonis <dragoonis@php.net> wrote: > 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>"; > } > ?> > > > -- > PHP Webmaster List Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.webmaster (#16199) next »