[
https://jira.jboss.org/jira/browse/JBPORTAL-2399?page=com.atlassian.jira....
]
Thomas Heute updated JBPORTAL-2399:
-----------------------------------
Fix Version/s: 2.7.3 Final
Tentatively set for JBoss Portal 2.7.3
HeaderContent tag can put multiple occurrences of JavaScript and CSS
files
--------------------------------------------------------------------------
Key: JBPORTAL-2399
URL:
https://jira.jboss.org/jira/browse/JBPORTAL-2399
Project: JBoss Portal
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Portal Theme
Affects Versions: 2.7.2 Final
Reporter: Philip Kedy
Priority: Minor
Fix For: 2.7.3 Final
Attachments: HeaderContentTagHandler.java
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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira