Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-82808

Optimize size and transfer time of AMD Loader configuration

    Details

      Description

      Currently the /o/js_loader_modules endpoint is returning a document of 1.5MB which is way too big to be retrieved for each page refresh. It could even be bigger as more npm modules are deployed.

      We need to cut both in size (minify it) and transfer time (gzip it for transfer).


      Steps to reproduce (I)

      1. Start portal
      2. Open Chrome dev tools, network tab
      3. Request http://localhost:8080/o/js_loader_modules from the browser

      Expected results:

      1. A document of around 817KB should be produced

      Actual results:

      1. A document of around 1.5MB is produced

      Steps to reproduce (II)

      1. Stop portal
      2. Edit portal.properties, set gzip.compression.level property to 1 (by default it is -1)
      3. Start portal
      4. Open Chrome dev tools, network tab
      5. Request http://localhost:8080/o/js_loader_modules from the browser

      Expected results:

      1. A document of around 817KB should be produced but only ~136KB should be transferred (see image below)

      Actual results:

      1. A document of around 1.5MB is produced and transferred

       

       

        Attachments

        1. image-2018-06-26-15-57-24-621.png
          image-2018-06-26-15-57-24-621.png
          50 kB
        2. resolve.PNG
          resolve.PNG
          234 kB
        3. resolve2.PNG
          resolve2.PNG
          109 kB

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  1 year, 22 weeks, 2 days ago

                  Packages

                  Version Package
                  7.0.0 DXP FP55
                  7.0.0 DXP SP9
                  7.0.X
                  7.1.10 DXP FP1
                  7.1.1 CE GA2
                  7.1.10.1 SP1
                  7.1.X
                  Master