From jira-events at lists.jboss.org Mon May 14 08:11:18 2012 Content-Type: multipart/mixed; boundary="===============6613347140350191132==" MIME-Version: 1.0 From: =?utf-8?q?Luk=C3=A1=C5=A1_Fry=C4=8D_=28JIRA=29_=3Cjira-events_at_lists=2E?= =?utf-8?q?jboss=2Eorg=3E?= To: richfaces-issues at lists.jboss.org Subject: [richfaces-issues] [JBoss JIRA] (RF-11822) Load components onload (on page ready) Date: Mon, 14 May 2012 08:11:17 -0400 Message-ID: <303579187.77505.1336997477963.JavaMail.tomcat@jira02.app.mwc.hst.phx2.redhat.com> In-Reply-To: 647353633.17528.1324048389695.JavaMail.tomcat@jira02.app.mwc.hst.phx2.redhat.com --===============6613347140350191132== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable [ https://issues.jboss.org/browse/RF-11822?page=3Dcom.atlassian.jira.pl= ugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D12692613#com= ment-12692613 ] = Luk=C3=A1=C5=A1 Fry=C4=8D commented on RF-11822: --------------------------------- Look also at duplicates for possible solutions: RF-8963, RF-7572 = > Load components onload (on page ready) > -------------------------------------- > > Key: RF-11822 > URL: https://issues.jboss.org/browse/RF-11822 > Project: RichFaces > Issue Type: Feature Request > Security Level: Public(Everyone can see) = > Components: cdk, resource handling > Affects Versions: 4.1.0.Final > Reporter: Luk=C3=A1=C5=A1 Fry=C4=8D > Labels: yahoo_performance_recommendations > Fix For: 4.3-Tracking > > > According to Yahoo performance recommendations ([1], see "Post-load Compo= nents"), > visual components should be loaded on page load ({{onload}} event) > to avoid heavy JavaScript processing before page is completely visually b= uilt. > In RichFaces, it is simple task using {{JavaScriptService}}, which enable= s you to collect and inject JavaScript snippets which should be loaded usin= g jQuery {{$(document).ready(...)}}. > Thanks to CDK templates, it's also simple change in renderers, just move = component contructor to newly created CDK tag {{}}, which= would delegate to {{JavaScriptService}} (if {{JavaScriptService}} not foun= d, processing may fall back to rendering {{}}, but this is optional part. > [1] http://developer.yahoo.com/performance/rules.html -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs: https://issues.jboss.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira = --===============6613347140350191132==--