[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Mirror thingie in every page



On Sun, Jun 10, 2001 at 11:08:23AM +0300, Tommi Vainikainen wrote:
> @@ -81,10 +83,10 @@
>  }
>  foreach $l (keys %$mirrors_lang) {
>    foreach $m (sort langcmp keys %{$mirrors_lang->{$l}}) {
> -  <perl:print>  [$l:<option value=\"http://www.$mirrors_lang->{$l}->{$m}.debian.org\">$m</option>\n:]</perl:print>
> +  <perl:print>[$l:<option value=\"http://www.$mirrors_lang->{$l}->{$m}.debian.org\">$m</option>\n:]</perl:print>
>    }
> 
> I think this is important, it removes 376(!) bytes of white chars per page.

Eek :) I'll apply this now.

>  }
> -</perl>
> +</perl>\
>  #      <option value="http://www.at.debian.org";><ATc></option>
>  #      <option value="http://www.au.debian.org";><AUc></option>
>  #      <option value="http://www.bg.debian.org";><BGc></option>
> 
> This removes useless empty line.
> 
> @@ -103,7 +105,7 @@
>  #      <option value="http://www.tr.debian.org";><TRc></option>
>  #      <option value="http://www.uk.debian.org";><UKc></option>
>  ##  \/ <option value="http://www.us.debian.org";><USc></option>
> -       <option value="http://www.debian.org"; selected>www.debian.org</option>
> +<option value="http://www.debian.org"; selected>www.debian.org</option>
>  </select>
>  <input type="SUBMIT" value=" <go> "<if "$(small)" " style=font-size:90%;">>
>  <br>
> 
> After this www.debian.org will be intended similar to generated list
> of mirrors.

No reason not to put in these two cosmetics. I see you understand the value
of readable generated code, too :)

> But of course, applying this also make big rebuild again.

Yeah, well, each time a translator fixes their typo in a slice, there's a
big rebuild <sigh> And since this will reduce the size of the whole site, it
deserves a rebuild :)

Thankfully, my (and Jay's) work on the mirrors has paid out -- all of them
get the fully rebuilt pages within a day, and most of them get it pushed, so
within 7 hours (6 hours between each rebuild, and a couple minutes up to
some 70 minutes for transferring the files).

-- 
Digital Electronic Being Intended for Assassination and Nullification



Reply to: