Details

      Description

      Probably one of the most common and direct suggestions to improve a page performance is to Minify Resources (HTML, CSS, and JavaScript).

      Tools like Lighthouse will flag unminified resources like CSS or JS as possible things to improve.

      Currently, and for many years, DXP has a complex minification scheme that involves minifiying resources on the fly in the server.

      This has caused plenty of performance and runtime issues over time and has even stalled progress because the minifiers are outdated and don't support new language features.

      The goal of this Epic is to design and implement a modern and robust strategy to serve minified CSS in DXP.

      Acceptance Criteria

      • The current minifier classes are deprecated and disabled by default
      • A new mechanism (flag, setting) can be used to detect if the system is running in production or dev mode to decide which files to serve
      • The new schema does not depend on runtime minification of assets
      • Build process is updated to properly generate the necessary minified (and unminified) CSS in build time

      Additional Criteria
      CSS minification architecture should closely match the results of Simplify JS minification scheme in DXP

        Attachments

          Activity

            People

            Assignee:
            support-lep@liferay.com SE Support
            Reporter:
            jose.balsas Chema Balsas
            Recent user:
            Chema Balsas
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:

                Packages

                Version Package