diff options
author | Yorhel <git@yorhel.nl> | 2010-11-25 17:22:58 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2010-11-25 17:38:16 +0100 |
commit | 625871cba8a2fe71c70b3d2946a5f37993d1f263 (patch) | |
tree | 1288db3b6ea43467251a6039a26e861326f0babe /data/lang.txt | |
parent | 7004c8352cda3c81e547aabc037fd9ec7f03172c (diff) |
JS: Split script.js into a separate file for each language
This greatly reduces the size of the Javascript file. The compressed
size has been reduced with about 9kB, and is now a total of 14kB for
en.js. A nice property of this is that more translations can be added
without increasing the JS size.
While I was at it, I made jsgen.pl also replace mt() function calls in
cases where an exact TL string was requested without any additional
arguments and/or formatting codes. This helped reduce the compressed
size by about 1kB.
My aim is to keep *all* the JS code of VNDB smaller than the jQuery core
library, as a general "fuck you" towards users of large and bloated JS
libraries. We must keep the VNDB page loading times lower than that of
other sites, after all!
Diffstat (limited to 'data/lang.txt')
0 files changed, 0 insertions, 0 deletions