Uploaded image for project: 'JBoss Portal'
  1. JBoss Portal
  2. JBPORTAL-2399

HeaderContent tag can put multiple occurrences of JavaScript and CSS files

    Details

      Description

      We commonly use the header-content feature of jboss-portlet.xml. It appears as though if multiple portlet instances of the same portlet definition are on the page that the JavaScript and CSS files referenced in the header-content are included in the head tag multiple times.

      This causes several browser performance issues with managing an increased volume of CSS and JavaScript. Also Internet Explorer has a limit of 32 CSS files that can be referenced directly in the head tag. Between the theme CSS and portlet CSS it is possible to surpass the 32 file limit.

      I have attached a revision to HeaderContentTagHandler.java to prevent multiple references to the same file. It also writes out references to CSS before JavaScript which is supposed to improve browser performance.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                pkedy Philip Kedy
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: