Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-73282 Implement Portlet 3.0
  3. LPS-81993

Portlet 3.0: Improve performance of top_head.jsp by inspecting portlets on the page for a portlet hub requirement

    Details

      Description

      The presence of the following <script>...</script> element in top_head.jsp causes a performance slowdown on all portal pages:

      top_head.jsp
      <script type="text/javascript">
      	var portlet = portlet || {};
      	portlet.impl = portlet.impl || {};
      	portlet.impl.getInitData = function() {
      		return <%= RenderStateUtil.generateJSON(request, themeDisplay) %>;
      	}
      </script>
      

      This task involves inspecting portlets on the page and only adding the <script>...</script> if the portlet hub is required by 1 or more portlets.

        Attachments

          Activity

            People

            Assignee:
            brian.chan Brian Chan
            Reporter:
            neil.griffin Neil Griffin
            Recent user:
            Csaba Turcsan
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              3 years, 7 weeks, 4 days ago

                Packages

                Version Package
                7.1.10 DXP FP1
                7.1.1 CE GA2
                7.1.10.1 SP1
                7.1.X
                Master