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

[validator] compress javascript

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • None
    • None
    • None
    • Operating System: other
      Platform: Other

    • 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

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

            Dates

              Created:
              Updated:
              Resolved: