counting with: double-newline characters (I think), Mozilla version (UTF-8 everywhere; no #default#homepage)
HTML/gzipped
Original goal: 2000/1000
I'll be lucky if I get the gzipped under 1000!
0 3563/1280 original
1 3563/1284 move the script to the bottom (!!!)
2 3497/1281 remove table around google logo, use extra
instead (moves everything by one pixel in NS4!!!) (!!!)
moving border=0 increases gzipped size by 1 byte!!!
adding D=document: 3489/1287 (-8/+6), no good.
3 3470/1267 make focus() inline (???)
(undid) 3466/1266 kill 'var'
(undid) 3480/1263 get rid of 'var f=document.f' (unfactor!) [dropped]
(undid) 3463/1267 keep 'var f=document.f' but move it out
5 3459/1264 keep 'var f=document.f' but move it out and kill 'var' [kept]
6 3451/1261 kill the other two vars
7 3445/1256 remove variable 't', which was only used once
3340/1254 factor http://www.google.com/ from js links
9 3337/1252 move 'hf' setting into if statement (first use)
10 3325/1246 kill f.action check (???)
3325/1246 use "" for all strings in js
11 3323/1244 kill now-unnecessary {} around if(hf=...) block
12 3274/1217 remove ids that start with numbers (???)
3268/1212 remove some whitespace from the script
3264/1210 remove more whitespace from the script
14 3256/1209 remove unnecessary ;'s from onClicks
(undid) 3137/1154 remove "
Want more from Google? Try these expert search tips
" 15 3264/1209 add whitespace for code readability (!!!) 3250/1199 remove maxLength=256 (???) 16 3241/1198 remove value="" (???) 17 3215/1187 remove quotes around attributes (including ones with trailing / and with -) 18 3173/1178 remove nowrap (Assumes English!!!) 19 3173/1180 f->F, hf->HF (to fix IE) 20 3164/1174 remove HF and extra if 21 3183/1183 re-add onload=focus to fix IE :( 22 3171/1181 and take out the inline focus :( 3161/1173 remove ",td,a,p,.h" in the selector that starts with body 24 3166/1178 re-add ",td,p" to fix Netscape 4 25 3160/1175 remove extra ; before } in CSS and turn #0000cc into #00c 2898/1155 use display:block for tab links, remove extra onclicks (also fixes status bar and changes focus ring to show that whole thing is clickable) (but makes stuff overlap after four levels of zoom: MOZILLA BUG) (!!!) (doesn't work in ns4, but that's ok, because the td's onclick didn't work in ns4) (also better when javascript is disabled) 26 2922/1161 add whitespace in the table with tabs (temporary) (undid) 2853/1163 get rid of font size=-1 in the tab table, replace with font-size:81% (81%: bad in opera. 82%: bad in mozilla after two text zooms. doh. and it increases the gzipped size.) (undid) (too much increased gzip size) move bgcolor of class=t to css (undid) -37/-3 remove whitespace in CSS get rid of , use an emptyish table cell instead 30 2885/1142 remove .h rule (???) 31 2839/1126 remove e.cancelBubble and event parameter to the onclick thing 32 2628/1022 get rid of c(), use this.href+= instead. (!!!) NICE savings. also happens to fix opera (images tab, back to web tab, submit -> goes to images tab). And fixes NS4!!! Like original, it gives a javascript error if the form hasn't finished loading. 33 2680/993 inline and unfactor the script block. Saves on gzipped only, kills a validation error. 36 2656/992 move class=t from td to table, since the only selector is ".t a" (not ".t") 37 2650/987 no longer need id=hf 38 2560/976 remove close tags for td, tr 39 2556/972 remove close tag for last p, add whitespace [2.630 compression ratio] 2597/986 re-add inline focus script so that modem users don't wait for image to focus field 41 2553/978 remove most whitespace 2520/961 remove opening html,head and closing html,head,body (all are valid html4loose. ie and moz still see UTF-8 meta, but validator can no longer see it.) 43 2518/959 remove // in style (???) 2514/948 remove two newlines I missed earlier (helps gzip size A LOT) 45 2508/940 remove whitespace in style (dangerous) 46 2468/934 remove s in links at the bottom 46: 30.7% smaller (27.0% smaller when gzipped) (original was 3563/1280) [2.784 compression ratio]