b3ta.com board
You are not logged in. Login or Signup
Home » Messageboard » XXX » Message 34518 (Thread)

# OK, I've done some super-optimised javascript
for the board.

There's an example here

It's not a working board, just an example of the code in action.

It knocks around 80% off the file size if the
posts average out at 100 chars or so.
(, Sat 16 Mar 2002, 6:08, archived)
# 503 of you rename the function to 'p' rather than 'post'
;)
(, Sat 16 Mar 2002, 6:12, archived)
# yup
readable code = muchos bandwidth ;)
(, Sat 16 Mar 2002, 6:15, archived)
# rename all your style classes..
... to things like a and k :)
(, Sat 16 Mar 2002, 6:17, archived)
# How about implementing a compression algorithm
... in JavaScript ? :)

Or seriously.....

www.remotecommunications.com/apache/mod_gzip/
(, Sat 16 Mar 2002, 6:23, archived)
# There are
HTML compressors out there. It's worth running files through these things before uploading them (That way there's an optimised version on the server and you have a readable copy to work with).

I've toyed with the idea of writing a javascript optimiser for a while now. Would anyone use something like that?
(, Sat 16 Mar 2002, 6:28, archived)
# Probably.
Although they have issues with dynamic content (php, cold fusion, asp etc).

What it really needs to do is take the content and dynamically find strings that
occur multiple times and replace them with variables.
(, Sat 16 Mar 2002, 6:36, archived)
# I still have no idea what you are talking about
so I will just nod my head in an understanding fashion.
(, Sat 16 Mar 2002, 6:17, archived)
# Sad....
we talk our own language, us programmers, don't we?
(, Sat 16 Mar 2002, 6:19, archived)
# Yes we do...
...hang on, I'm not a programmer. That reminds me, I don't understand any of the coding. But good work fella!
(, Sat 16 Mar 2002, 6:21, archived)
# can I get
a phrasebook?
(, Sat 16 Mar 2002, 6:21, archived)
# I'm sure there is one on Amazon...
(looks) no there ain't :)
(, Sat 16 Mar 2002, 6:34, archived)