ICEfaces
  1. ICEfaces
  2. ICE-2828

Strip redundant copyright notices in Javascript build

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.7Beta1
    • Fix Version/s: 1.7RC1, 1.7
    • Component/s: Bridge
    • Labels:
      None
    • Environment:
      All

      Description

      If you look at the served icefaces-d2d.js and ice-extras.js files, you will see that they hold 24 and 19 redundant copies of our copyright notices, each of which is 1,618 bytes, for a total of 69,574 bytes. We should change the build process, which amalgamates the many Javascript files together, to only include one copy of our copyright notice, and strip out the others.

      And how come we're not smallifying these files, or at least stripping out redundant whitespace?
      1. build.xml
        12 kB
        Krashan Brahmanjara
      2. build.xml
        22 kB
        Krashan Brahmanjara

        Issue Links

          Activity

          Mark Collette created issue -
          Mark Collette made changes -
          Field Original Value New Value
          Description If you look at the served icefaces-d2d.js and ice-extras.js files, you will see that they hold 24 and 19 redundant copies of our copyright notices, each of which is 1,618 bytes, for a total of 69,574 bytes. We should change the build process, which amalgamates the many Javascript files together, to only include one copy of our copyright notice, and strip out the others.
          If you look at the served icefaces-d2d.js and ice-extras.js files, you will see that they hold 24 and 19 redundant copies of our copyright notices, each of which is 1,618 bytes, for a total of 69,574 bytes. We should change the build process, which amalgamates the many Javascript files together, to only include one copy of our copyright notice, and strip out the others.

          And how come we're not smallifying these files, or at least stripping out redundant whitespace?
          Hide
          Ken Fyten added a comment -

          Any suggestions on how to best achieve this?

          Show
          Ken Fyten added a comment - Any suggestions on how to best achieve this?
          Ken Fyten made changes -
          Fix Version/s 1.7 [ 10080 ]
          Assignee Priority P2
          Assignee Mircea Toma [ mircea.toma ]
          Hide
          Mircea Toma added a comment -

          Yes, we need to switch to YUI Compressor ( http://developer.yahoo.com/yui/compressor/ ).

          Show
          Mircea Toma added a comment - Yes, we need to switch to YUI Compressor ( http://developer.yahoo.com/yui/compressor/ ).
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #16024 Thu Mar 13 16:59:05 MDT 2008 mircea.toma Replace Dojo compressor with YUI compressor (version 2.3.5).
          Refactor build file.
          ICE-2828
          Files Changed
          Commit graph MODIFY /icefaces/trunk/icefaces/bridge/compressor.jar
          Commit graph MODIFY /icefaces/trunk/icefaces/bridge/build.xml
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #16025 Thu Mar 13 17:17:46 MDT 2008 mircea.toma Replace Dojo compressor with YUI compressor (version 2.3.5).
          Refactor build file.
          ICE-2828
          Files Changed
          Commit graph MODIFY /icefaces/trunk/icefaces/core/build.xml
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #16026 Thu Mar 13 17:36:02 MDT 2008 mircea.toma Fix target.
          ICE-2828
          Files Changed
          Commit graph MODIFY /icefaces/trunk/icefaces/bridge/build.xml
          Hide
          Mircea Toma added a comment -

          Replace Dojo compressor with YUI compressor (version 2.3.5).
          Refactor build file.

          icefaces-d2d.js – before=84Kb; after=76Kb
          ice-extras.js – before=248Kb; after=200Kb

          Show
          Mircea Toma added a comment - Replace Dojo compressor with YUI compressor (version 2.3.5). Refactor build file. icefaces-d2d.js – before=84Kb; after=76Kb ice-extras.js – before=248Kb; after=200Kb
          Mircea Toma made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #16030 Fri Mar 14 10:41:12 MDT 2008 mircea.toma Stop caching the DOM element wrappers.
          ICE-2828
          Files Changed
          Commit graph MODIFY /icefaces/trunk/icefaces/bridge/lib/element.js
          Ken Fyten made changes -
          Fix Version/s 1.7RC1 [ 10123 ]
          Fix Version/s 1.7 [ 10080 ]
          Ken Fyten made changes -
          Link This issue blocks ICE-2883 [ ICE-2883 ]
          Hide
          Krashan Brahmanjara added a comment -

          The problem started somewhere after revision 15853.

          At this moment good solution is

          • change current /src/bridge/build.xml to /src/bridge/build.xml from revision 15583
          • change current /src/bridge/compressor.jar to /src/bridge/compressor.jar from revision 15583
          • change current /src/core/build.xml to /src/core/build.xml from revision 15583

          After this scripts got correct size

          • src\bridge\build\ice-extras.js has 252 943 bytes
          • src\bridge\build\icefaces-d2d.js has 84785 bytes
          Show
          Krashan Brahmanjara added a comment - The problem started somewhere after revision 15853. At this moment good solution is change current /src/bridge/build.xml to /src/bridge/build.xml from revision 15583 change current /src/bridge/compressor.jar to /src/bridge/compressor.jar from revision 15583 change current /src/core/build.xml to /src/core/build.xml from revision 15583 After this scripts got correct size src\bridge\build\ice-extras.js has 252 943 bytes src\bridge\build\icefaces-d2d.js has 84785 bytes
          Hide
          Krashan Brahmanjara added a comment -

          Compressor from revision 15853

          Show
          Krashan Brahmanjara added a comment - Compressor from revision 15853
          Krashan Brahmanjara made changes -
          Attachment compressor.jar [ 10893 ]
          Hide
          Krashan Brahmanjara added a comment -

          Bridge build from revision 15853

          Show
          Krashan Brahmanjara added a comment - Bridge build from revision 15853
          Krashan Brahmanjara made changes -
          Attachment build.xml [ 10894 ]
          Hide
          Krashan Brahmanjara added a comment -

          Core build from revision 15853

          Show
          Krashan Brahmanjara added a comment - Core build from revision 15853
          Krashan Brahmanjara made changes -
          Attachment build.xml [ 10895 ]
          Hide
          Krashan Brahmanjara added a comment -

          In comment above I suggest to cancel changes in build.xml files from revisions 16024,16025,16026,16060.

          These changes was not necessery.and finally results was 3MB javascripts.

          Show
          Krashan Brahmanjara added a comment - In comment above I suggest to cancel changes in build.xml files from revisions 16024,16025,16026,16060. These changes was not necessery.and finally results was 3MB javascripts.
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #16294 Fri Apr 04 17:28:02 MDT 2008 mircea.toma Erase coalesced files before re-creating them.
          ICE-2828
          Files Changed
          Commit graph MODIFY /icefaces/trunk/icefaces/bridge/build.xml
          Ken Fyten made changes -
          Fix Version/s 1.7 [ 10080 ]
          Ken Fyten made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Assignee Priority P2
          Assignee Mircea Toma [ mircea.toma ]

            People

            • Assignee:
              Unassigned
              Reporter:
              Mark Collette
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: