]> Lady’s Gitweb - Gitweb/commit
gitweb: Split JavaScript for maintability, combining on build
authorJakub Narebski <redacted>
Thu, 28 Apr 2011 19:04:01 +0000 (21:04 +0200)
committerLady <redacted>
Mon, 6 Apr 2026 04:51:31 +0000 (00:51 -0400)
commit9e22c1d38a7ea592f3ccdc408317963e4588f0af2b62c1b82e2af6510dfb5871
tree19a26106f8eb42859e1c4231c722428fb8717fb01d12e1778265b0e54c5cd251
parent85bd74df6c8129ec4eaa4ce82c5e96b97b09006547167cfef162e9d7d0939c78
gitweb: Split JavaScript for maintability, combining on build

Split originally single gitweb.js file into smaller files, each
dealing with single issue / area of responsibility.  This move should
make gitweb's JavaScript code easier to maintain.

For better webapp performance it is recommended[1][2][3] to combine
JavaScript files.  Do it during build time (in gitweb/Makefile), by
straight concatenation of files into gitweb.js file (which is now
ignored as being generated).  This means that there are no changes to
gitweb script itself - it still uses gitweb.js or gitweb.min.js, but
now generated.

[1]: http://developer.yahoo.com/performance/rules.html
     "Minimize HTTP Requests" section
[2]: http://code.google.com/speed/articles/include-scripts-properly.html
     "1. Combine external JavaScript files"
[3]: http://javascript-reference.info/speed-up-your-javascript-load-time.htm
     "Combine Your Files" section.

See also new gitweb/static/js/README file.

Inspired-by-patch-by: John 'Warthog9' Hawley <redacted>
Signed-off-by: Jakub Narebski <redacted>
Signed-off-by: Junio C Hamano <redacted>
Makefile
static/js/README [new file with mode: 0644]
static/js/blame_incremental.js [moved from static/gitweb.js with 76% similarity]
static/js/javascript-detection.js [new file with mode: 0644]
static/js/lib/common-lib.js [new file with mode: 0644]
This page took 0.352373 seconds and 4 git commands to generate.