Uploaded image for project: 'Commons Validator'
  1. Commons Validator
  2. VALIDATOR-142

[validator] compress javascript

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      Operating System: other
      Platform: Other

    • Bugzilla Id:
      37580

      Description

      I've noticed that the javascript files in the commons validator are pretty big in terms of whitespace. As a
      result, the static javascript file used on my site (i.e. generated by the html:javascript tag) is also large,
      about 43k.

      One way to reduce the size of this file would be to add an optional attribute to JavascriptValidatorTag that
      inidicates to compress the output.

      I'm not sure if there's any existing javascript compressors in the commons project. The folks at dojo have
      implemented one using Rhino (http://dojotoolkit.org/docs/compressor_system.html) I'm sure there are
      others.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rush@pobox.com Michael Rush
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: