Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1090470

Summary: Remove native AMD modules from requireJs config
Product: [JBoss] JBoss Enterprise Portal Platform 6 Reporter: Peter Palaga <ppalaga>
Component: PerformanceAssignee: Peter Palaga <ppalaga>
Status: CLOSED UPSTREAM QA Contact: Marek Baluch <mbaluch>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: epp-bugs
Target Milestone: ER02   
Target Release: 6.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-02-10 03:35:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Peter Palaga 2014-04-23 12:03:23 UTC
Description of problem:
RequireJs config is a json structure renderead inline in the HTML markup of every page returned by the portal. The recent "Native AMD Support" feature has brought the possibility to work with large third-party javascript frameworks such as Dojo containing thousands of JavaScript modules. The present implementation adds an entry for every native AMD module into RequireJs config. With a dojo portlet deployed, this causes an overhead of more than 400KB per page.

Version-Release number of selected component (if applicable):
JBoss EAP 6.2.0.ER1

How reproducible:
always

Steps to Reproduce:
1. Compile and deploy the dojo portlet application from https://github.com/ppalaga/dojo-portlet
2. Import applications
3. Inspect the source of any portal page, e.g. /portal/classic/home
4. Locate the line starting with

  var require =

Actual results: All dojo resources are there in the json structure assigned to the require variable.

Expected results: No resources coming from Dojo should be there.

Additional info: Not having the resources coming from Dojo in requireJS config is technically possible as the native AMD modules are implicitly SHARED and the baseUrl is set properly in the config.

Comment 2 Peter Palaga 2014-04-23 19:38:12 UTC
https://github.com/gatein/gatein-portal/pull/839 was merged in upstream.

Comment 4 Petr Mensik 2014-06-13 13:32:38 UTC
I confirm that there are no resources from Dojo in require variable.

Comment 8 Red Hat Bugzilla 2025-02-10 03:35:40 UTC
This product has been discontinued or is no longer tracked in Red Hat Bugzilla.