ICEfaces
  1. ICEfaces
  2. ICE-1175

Make minification of JavaScript configurable

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.5
    • Fix Version/s: 3.1.0.RC1, 3.1
    • Component/s: Release
    • Labels:
      None
    • Environment:
      Operating System: All
      Platform: All
    • Assignee Priority:
      P1
    • Affects:
      Documentation (User Guide, Ref. Guide, etc.), Compatibility/Configuration

      Description

      We now have compressed javascript files, which is a good thing for performance reason. However, it makes it more difficult for debugging and profiling. We have to manually modify the build files avoid minifying the JavaScript files. This takes time and can be error-prone.

      A better approach would be to automatically server human-readable / debug versions of all JavaScript files when running in JSF 2 "Development" project-stage. The other project-stages would continue to use minified resource files as they do now.

        Issue Links

          Activity

          Repository Revision Date User Message
          ICEsoft Public SVN Repository #29544 Tue Jun 19 15:16:30 MDT 2012 mircea.toma ICE-1175 Fixed 'compat' build to avoid removing the coalesced JS code before the the compressed JS resources are built.
          Files Changed
          Commit graph MODIFY /icefaces3/trunk/icefaces/compat/core/build.javascript.xml
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #29516 Thu Jun 14 15:13:21 MDT 2012 mircea.toma ICE-1175 Modified BridgeSetup to also pick the uncompressed ICEpush JS file when in Developmnt mode.
          Files Changed
          Commit graph MODIFY /icefaces3/trunk/icefaces/lib/icepush.jar
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #29515 Thu Jun 14 15:12:38 MDT 2012 mircea.toma ICE-1175 Modified BridgeSetup to also pick the uncompressed ICEpush JS file when in Developmnt mode.
          Files Changed
          Commit graph MODIFY /icefaces3/trunk/icefaces/core/src/main/java/org/icefaces/impl/event/BridgeSetup.java
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #29514 Thu Jun 14 15:05:21 MDT 2012 mircea.toma ICE-1175 Generate compressed and uncompressed JS files so that one or the other can be used depending on the project stage.
          Files Changed
          Commit graph MODIFY /icepush/trunk/icepush/core/build.javascript.xml
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #29510 Thu Jun 14 11:31:16 MDT 2012 mircea.toma ICE-1175 Modified 'core' and 'compat' builds to generate both compressed and uncompressed versions of the JS files. Modified also BridgeSetup and ExtrasSetup to insert the resources corresponding to the uncompressed files while running in Development mode.
          Files Changed
          Commit graph MODIFY /icefaces3/trunk/icefaces/core/src/main/java/org/icefaces/impl/event/BridgeSetup.java
          Commit graph MODIFY /icefaces3/trunk/icefaces/compat/core/build.javascript.xml
          Commit graph MODIFY /icefaces3/trunk/icefaces/core/src/main/javascript/application.js
          Commit graph MODIFY /icefaces3/trunk/icefaces/compat/core/src/main/java/com/icesoft/faces/application/ExtrasSetup.java
          Commit graph MODIFY /icefaces3/trunk/icefaces/core/build.javascript.xml
          Commit graph MODIFY /icefaces3/trunk/icefaces/core/src/main/javascript/fixjsf.js

            People

            • Assignee:
              Mircea Toma
              Reporter:
              Deryk Sinotte
            • Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: