Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 345120

Summary: Deliver concatenated JavaScript as static resource
Product: [RT] RAP Reporter: Ralf Sternberg <rsternberg>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: 1.4   
Target Milestone: 1.5 M4   
Hardware: PC   
OS: Linux   
Whiteboard:
Bug Depends on: 345123    
Bug Blocks: 335545, 338412    

Description Ralf Sternberg CLA 2011-05-09 06:41:48 EDT
From the discussion on bug 335545 it became apparent that the concatenated JavaScript should be better delivered as a static resource.
This change will
* leave the delivery of the content to the servlet container
* leave the gzip compression to the servlet container
* thus allow for performance optimizations such as direct access, caching, etc. by a proxy web server
* fix bug 338412 and bug 335545
Comment 1 Ralf Sternberg CLA 2011-11-13 15:29:04 EST
All JavaScript resources are now registered as static resources and included in the initial HTML page.
* The RWT client library is currently copied into a single file named rap-client-XXX.js, where XXX is the version hash. This happens in the ClientResources class.
* All other registered JavaScript resources are currently concatenated by the JsLibraryConcatenator and copied into a file named resources-XXX.js.
* For every theme, the JavaScript and ThemeStore contents are copied into a file named rap-THEME_ID-XXX.js, where THEME_ID is the id of the theme. These files are only needed until bug 321213 is fixed.
* The rap- prefix is needed as a workaround to exclude RAP's own JavaScript files from the JSConcatenator.
* All these files are compressed in production mode.
The JSLibraryServiceHandler has been removed.
Changes are in CVS HEAD.