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-7197

Splitting javascript everything.js into only including JS that's not already loaded

    Details

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

      Description

      Currently, Liferay loads two different JS files depending on if you're logged in or not. However, this is bad for performance, because the client not only has to download the first file (which is ~30k), they then have to download the same 30k, but as part of a different file, so the total transfer they end up having to dl is the combined size of everything.js and barebones.js.

      Instead, what happens now is that it ALWAYS downloads barebones, but only downloads everything.js if you're signed in, so that even though there is now 2 requests, the performance is better because one file is already cached, and the other request is much smaller.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Packages

                  Version Package