From jira-events at lists.jboss.org Thu Oct 18 12:21:01 2012 Content-Type: multipart/mixed; boundary="===============8050296669381214640==" 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) with JavaScriptService Date: Thu, 18 Oct 2012 12:21:01 -0400 Message-ID: <226894054.17872.1350577261549.JavaMail.tomcat@jira02.app.mwc.hst.phx2.redhat.com> In-Reply-To: 647353633.17528.1324048389695.JavaMail.tomcat@jira02.app.mwc.hst.phx2.redhat.com --===============8050296669381214640== 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: Load components onload (on page ready) with JavaScriptService = (was: Load components onload (on page ready)) = > Load 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 --===============8050296669381214640==--