Details

      Description

      The idea is to create an ant task which uses YUICompressor to dynamically minify our own (or custom for users) js and css files (most of the bigest external ones are already compressed)

        Activity

        Jacques Le Roux made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Jacques Le Roux made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Jacques Le Roux made changes -
        Resolution Fixed [ 1 ]
        Status Closed [ 6 ] Reopened [ 4 ]
        Jacques Le Roux made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        Mandeep Sidhu made changes -
        Comment [ I analyzed the URL being accessed by my application, I am trying to consume a version of jquery from google's CDN.
        URL: http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js

        the size I am getting back is around 72KB, which is not gzipped, although Ofbiz is sending gzip as part of content-encoding. Here's what OFbiz is requesting

        Vary Accept-Encoding
        Content-Encoding gzip
        Content-Type text/javascript; charset=UTF-8
        Last-Modified Mon, 02 Apr 2012 18:24:28 GMT
        Date Wed, 04 Apr 2012 16:56:11 GMT
        Expires Thu, 04 Apr 2013 16:56:11 GMT
        X-Content-Type-Options nosniff
        Server GFE/2.0
        Content-Length 24605
        X-XSS-Protection 1; mode=block
        Cache-Control public, max-age=31536000
        Age 328756

        One thing to note here is that it is not sending the user-agent header, and surprisingly google's CDN doesn't understand this and expects an established user-agent header,
        I used some tool to hit the same url and sent user-agent explicitly, surprisingly the received file size was 25Kb.

        do you've any idea as to why OFBIZ(tomcat server ) is omitting the user-agent header. ]
        Jacques Le Roux made changes -
        Assignee Jacques Le Roux [ jacques.le.roux ]
        Jacques Le Roux made changes -
        Description The idea is to create an ant task using [yui-compressor-ant-task|http://code.google.com/p/yui-compressor-ant-task/] to dynamically minify our own (or custom for users) js and css files (most of the bigest external ones are already compressed)
        The idea is to create an ant task which uses [YUICompressor|http://developer.yahoo.com/yui/compressor/] to dynamically minify our own (or custom for users) js and css files (most of the bigest external ones are already compressed)
        Jacques Le Roux made changes -
        Description

        The idea is to create an ant task using [yui-compressor-ant-task|http://code.google.com/p/yui-compressor-ant-task/]to dynamically compress our own js and css files (most of the bigest external ones are already compressed)
        The idea is to create an ant task using [yui-compressor-ant-task|http://code.google.com/p/yui-compressor-ant-task/] to dynamically minify our own (or custom for users) js and css files (most of the bigest external ones are already compressed)
        Jacques Le Roux made changes -
        Summary Using GZip compression for js/css files Add a yui-compressor-ant-task
        Original Estimate 72h [ 259200 ]
        Remaining Estimate 72h [ 259200 ]
        Labels build compression features javascript build compression css features javascript
        Description I was wondering if it is possible to reduce the size of external javascript's/css files being fetched by making use of GZip encoding.

        The feeding server does understand and responds to GZip encoding, however Ofbiz is not requesting the content in GZip format.

        Kindly include this feature so that Ofbiz will include the GZip encoding option in the http header while requesting the external javascript file ?

        Also, if possible integrate the compressor module
        http://code.google.com/p/yui-compressor-ant-task/
        as suggested by Jacques (Jacques Le Roux jacques.le.roux)


        The idea is to create an ant task using [yui-compressor-ant-task|http://code.google.com/p/yui-compressor-ant-task/]to dynamically compress our own js and css files (most of the bigest external ones are already compressed)
        Component/s framework [ 12311145 ]
        Component/s specialpurpose/ecommerce [ 12311148 ]
        Component/s ALL APPLICATIONS [ 12313113 ]
        Jacques Le Roux made changes -
        Labels build features javascript build compression features javascript
        Jacques Le Roux made changes -
        Field Original Value New Value
        Fix Version/s SVN trunk [ 12311928 ]
        Fix Version/s Release Branch 11.04 [ 12316420 ]
        Affects Version/s SVN trunk [ 12311928 ]
        Affects Version/s Release Branch 11.04 [ 12316420 ]
        Priority Major [ 3 ] Trivial [ 5 ]
        Mandeep Sidhu created issue -

          People

          • Assignee:
            Jacques Le Roux
            Reporter:
            Mandeep Sidhu
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development