Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 345120 - Deliver concatenated JavaScript as static resource
Summary: Deliver concatenated JavaScript as static resource
Status: RESOLVED FIXED
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: 1.4   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: 1.5 M4   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 345123
Blocks: 335545 338412
  Show dependency tree
 
Reported: 2011-05-09 06:41 EDT by Ralf Sternberg CLA
Modified: 2012-04-30 07:52 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.