Bug 793742 (JBEPP-812)

Summary: add the option to load the portal static rsources on demand besides the current implementation that loads all of the resources the first time the portal page is hit.
Product: [JBoss] JBoss Enterprise Portal Platform 5 Reporter: Gary Hu <garyhu2>
Component: unspecifiedAssignee: Default User <jbpapp-maint>
Status: CLOSED DEFERRED QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 5.1.0.GACC: bmachado, claudio, claudio, garyhu2, prabhat.jha, theute
Target Milestone: ---   
Target Release: 5.2.0.GA   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/JBEPP-812
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-15 10:58:38 UTC Type: Feature Request
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Gary Hu 2011-03-02 16:39:23 UTC
Help Desk Ticket Reference: https://na7.salesforce.com/500A0000006K97M
project_key: JBEPP

The current implementation of EPP5 loads all the static resources the first time the portal page is hit. All the static resources then are properly cached. 
But customer also discovers that this implementation makes the size of the default home page out of box about 1.5 Mb and consequently takes long time to fully load.
The following is a list of js, css, images loaded for the default home page with Site Publisher installed:
http ://10 .0 .1.8 9 :8 0 8 0 /portal/javascript/merged.js
http ://10 .0 .1.8 9 :8 0 8 0 /.../I18NMessage.js
http ://10 .0 .1.8 9 :8 0 8 0 /.../MessageResource_en.js
http ://10 .0 .1.8 9 :8 0 8 0 /.../ckeditor.js
http ://10 .0 .1.8 9 :8 0 8 0 /.../Stylesheet-lt.css
http ://10 .0 .1.8 9 :8 0 8 0 /.../Stylesheet-lt.css
http ://10 .0 .1.8 9 :8 0 8 0 /eXoResources/skin/Stylesheet-lt.css
http ://10 .0 .1.8 9 :8 0 8 0 /.../Stylesheet-lt.css
http ://10 .0 .1.8 9 :8 0 8 0 /.../1297961624585-lt.css
http ://10 .0 .1.8 9 :8 0 8 0 /.../DefaultStylesheet-lt.css
http ://10 .0 .1.8 9 :8 0 8 0 /.../LoadingProgress.gif
http ://10 .0 .1.8 9 :8 0 8 0 /.../LightBlueStyle.gif
http ://10 .0 .1.8 9 :8 0 8 0 /.../EdittingToolBarL.png
http ://10 .0 .1.8 9 :8 0 8 0 /.../EdittingToolBarR.png
http ://10 .0 .1.8 9 :8 0 8 0 /.../EdittingToolBarC.png
http ://10 .0 .1.8 9 :8 0 8 0 /.../IconLockedBig.gif
http ://10 .0 .1.8 9 :8 0 8 0 /.../ExoMessageDecorator.png
http ://10 .0 .1.8 9 :8 0 8 0 /.../Message.gif
http ://10 .0 .1.8 9 :8 0 8 0 /.../CloseIcon.gif
http ://10 .0 .1.8 9 :8 0 8 0 /.../MiddleExoMessage.png
http ://10 .0 .1.8 9 :8 0 8 0 /.../MessageTabBar.gif
http ://10 .0 .1.8 9 :8 0 8 0 /.../MessageTabDialog.gif
http ://10 .0 .1.8 9 :8 0 8 0 /.../cabecalho-bg.jpg
http ://10 .0 .1.8 9 :8 0 8 0 /.../controle-bg.jpg
http ://10 .0 .1.8 9 :8 0 8 0 /.../body-bg.jpg
http ://10 .0 .1.8 9 :8 0 8 0 /.../bullet-input.jpg
http ://10 .0 .1.8 9 :8 0 8 0 /.../menu-img.gif
http ://10 .0 .1.8 9 :8 0 8 0 /.../navegacao-bg.jpg
http ://10 .0 .1.8 9 :8 0 8 0 /.../BgPagebody.gif
http ://10 .0 .1.8 9 :8 0 8 0 /.../MaskWorkspace.png
http ://10 .0 .1.8 9 :8 0 8 0 /.../MiddleMaskWorkspace.png
http ://10 .0 .1.8 9 :8 0 8 0 /.../logo-brasil.gif
http ://10 .0 .1.8 9 :8 0 8 0 /.../logo-mct.gif
http ://10 .0 .1.8 9 :8 0 8 0 /.../topo.jpg
http ://10 .0 .1.8 9 :8 0 8 0 /.../busca-icone.jpg
http ://10 .0 .1.8 9 :8 0 8 0 /.../acessibilidade-diminuir.jpg
http ://10 .0 .1.8 9 :8 0 8 0 /.../acessibilidade-aumentar.jpg
http ://10 .0 .1.8 9 :8 0 8 0 /.../acessibilidade-contraste.jpg
http ://10 .0 .1.8 9 :8 0 8 0 /.../rss.jpg
http ://10 .0 .1.8 9 :8 0 8 0 /.../339a9a3e0a000157237872d0fbdd9055?...
http ://10 .0 .1.8 9 :8 0 8 0 /.../imagem-2.jpg
http ://10 .0 .1.8 9 :8 0 8 0 /.../imagem-3.jpg
http ://10 .0 .1.8 9 :8 0 8 0 /.../icone-1.jpg
http ://10 .0 .1.8 9 :8 0 8 0 /.../icone-2.jpg
http ://10 .0 .1.8 9 :8 0 8 0 /.../icone-3.jpg
http ://10 .0 .1.8 9 :8 0 8 0 /.../icone-4.jpg
http ://10 .0 .1.8 9 :8 0 8 0 /.../icone-5.jpg
http ://10 .0 .1.8 9 :8 0 8 0 /.../icone-6.jpg
http ://10 .0 .1.8 9 :8 0 8 0 /p o rtal/favicon.ico

Is it possible to add the option to only load the resourced as needed? 
For example, ckeditor.js is only needed to people who login and edit the page content but it's also loaded for the anonymous login user.

Comment 6 Jared MORGAN 2011-11-16 23:49:03 UTC
Release Notes Docs Status: Added: Not Yet Documented
Release Notes Text: Added: CAUSE:

CONSEQUENCE:

FIX:

RESULT:


Comment 7 Thomas Heute 2011-12-15 10:58:38 UTC
DOM has been simplified and things like the CKEditor is not loaded anymore on anonymous pages

Comment 8 Thomas Heute 2011-12-15 10:58:38 UTC
Release Notes Docs Status: Removed: Not Yet Documented Added: Not Required


Comment 9 claudio 2012-02-27 14:12:56 UTC
Hi, I see that in a EPPSP 5.2 installation, for an anonymous internet user (no login) the ckeditor is loaded by default. That corresponds to 311.4 KB

<script type="text/javascript" src="/eXoStaticResources/ckeditor/ckeditor.js"></script>