hi there,
first off if you're using PHP nobody will see the logic anyway as only
HTML is outputted.
as far as CSS and JS go (since they have to be publicly visible) you
can always compress them to make them unreadable :)
also, if you use apache, i believe "mod_deflate" compresses the entire
content without any intervention automatically.
there's gotta be better ways though... have you ever tried to look at
Googles source code? xD