Javascript in hgweb
Laurens Holst
laurens.nospam at grauw.nl
Fri May 31 15:14:22 CDT 2013
Op 5/31/13 7:06 PM, Александр Плавин schreef:
> As I'm going to introduce much more (compared to now) javascript code
> to hgweb this summer, wouldn't it be a good idea to run a minifier on
> build? I'm sure there are some lightweight ones, and I could integrate
> it to the makefile.
Ideally not, having unminified code improves the hackability of hgweb.
If you make sure it’s served with the right Last-Modified HTTP headers,
it’ll be cached by the browser, and if you send it gzipped, minifying
will probably have relatively little effect.
I’d say first implement the things that you plan to, then look at how
much JavaScript you’ve got. At that point you could base the decision on
the actual size, and if you want to, load time measurements.
~Laurens
More information about the Mercurial-devel
mailing list