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

      service.js (generated json layer) is no longer automatically included. You have to declare that your portlet needs it,

      <header-portal-javascript>/html/js/liferay/service_packed.js</header-portal-javascript>

      service.js renamed to service_unpacked.js. Use service_packed.js for production.

      everything.js renamed to everything_packed.js to keep with the same naming convention.

      liferay-portlet.xml was modified to allow for fine tuning of javascript libraries. This means a portlet that uses javascript XYZ, that is available in the portal, and 3 other portlets that also use that javascript can share and load it just once via:

      header-portal-javascript

      See the dtd for more information.

      The same applies for css.

      Also added the notation of "footer*" which is the same as header except it shows up in the bottom of the page for js that can be loaded later.

      These optimizations save about 20k (gzipped from the download). So now everything_packed.js is 80 kb instead of 100 kb.

      Also moved some css and javascript declarations to the page itself to minimize additional http requests.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package
                4.3.2
                4.4.0