From jira-events at lists.jboss.org Thu Oct 18 12:21:02 2012 Content-Type: multipart/mixed; boundary="===============3110410438030768984==" 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) Instantiate components onload (on page ready) with JavaScriptService Date: Thu, 18 Oct 2012 12:21:02 -0400 Message-ID: <1890023892.17878.1350577262105.JavaMail.tomcat@jira02.app.mwc.hst.phx2.redhat.com> In-Reply-To: 647353633.17528.1324048389695.JavaMail.tomcat@jira02.app.mwc.hst.phx2.redhat.com --===============3110410438030768984== 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.p= lugin.system.issuetabpanels:all-tabpanel ] Luk=C3=A1=C5=A1 Fry=C4=8D updated RF-11822: ---------------------------- Summary: Instantiate components onload (on page ready) with JavaScriptS= ervice (was: Load components onload (on page ready) with JavaScriptService) = > Instantiate components onload (on page ready) with JavaScriptService > -------------------------------------------------------------------- > > 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: 5-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 For more information on JIRA, see: http://www.atlassian.com/software/jira --===============3110410438030768984==--