Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: EE-3.3.0.GA
-
Fix Version/s: EE-3.3.0.GA_P01
-
Component/s: Core Extensions
-
Labels:None
-
Environment:Portal portlet
-
Assignee Priority:P1
Description
Using and EE release, if you run any of the portlet examples, you'll notice resource loading issues when running multiple portlets on the same page. Most resources (e.g. jsf.js) only get loaded once. But EE resources like mobi.js and icefaces-ee.js get loaded once for each portlet.
To reproduce, run the chat-portlet example from EE 3.3 (or P01) on Liferay and review the resources added to the <head>. I see an instance of mobi.js and icefaces-ee.js per portlet. Other resources only appear once:
Single Chat Instance on the page
I pared down the resource scripts in the <head> to just our stuff (and removed any Liferay-specific attributes to make things easier to read). This set of scripts is for one chat portlet on the page. Basically one copy of everything except for the isHeadUpdateSuccessful setting. The mobi and icefaces-ee scripts are also missing a library name but that may or may not be important.
Two Chat Instances on the page
When I add a second chat instance, we can see some issues: