Uploaded image for project: 'ZZZ: PUBLIC - Old Liferay Portal (Use Liferay Portal Standard Edition)'
  1. ZZZ: PUBLIC - Old Liferay Portal (Use Liferay Portal Standard Edition)
  2. LEP-3713

Use YUI compressor for javascript compression, instead of Dean Edwards' packer

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.3.1
    • Fix Version/s: 4.3.2, 4.4.0
    • Component/s: None
    • Labels:
      None

      Description

      everything_unpacked.js = 725k

      everything.js with dean's packer = 250k
      everything.js with yui compressor = 407k

      So why are we switching from dean's to yui?

      Because everything.js is gzipped anyways.

      Zipping up the two shows them both at 97k.

      However, dean's is one big eval, requiring intensive Firefox processing.

      Firefox net debugger showed everything.js (dean) processing at 1.5 seconds
      Firefox net debugger showed everything.js (yui) processing at .25 seconds

      This is a savings of 1.25 seconds merely from firefox processing while testing locally (wanted to do a computational test, and not a network bandwidth test)

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package
                4.3.2
                4.4.0