From jira-events at lists.jboss.org Fri Dec 16 10:13:10 2011 Content-Type: multipart/mixed; boundary="===============4953795975464635696==" MIME-Version: 1.0 From: =?utf-8?q?Luk=C3=A1=C5=A1_Fry=C4=8D_=28Created=29_=28JIRA=29_=3Cjira-even?= =?utf-8?q?ts_at_lists=2Ejboss=2Eorg=3E?= To: richfaces-issues at lists.jboss.org Subject: [richfaces-issues] [JBoss JIRA] (RF-11822) Load components onload (on page ready) Date: Fri, 16 Dec 2011 10:13:09 -0500 Message-ID: <647353633.17528.1324048389695.JavaMail.tomcat@jira02.app.mwc.hst.phx2.redhat.com> --===============4953795975464635696== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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, core Affects Versions: 4.1.0.Final Reporter: Luk=C3=A1=C5=A1 Fry=C4=8D According to Yahoo performance recommendations ([1], see "Post-load Compone= nts"), visual components should be loaded on page load ({{onload}} event) to avoid heavy JavaScript processing before page is completely visually bui= lt. In RichFaces, it is simple task using {{JavaScriptService}}, which enables = you to collect and inject JavaScript snippets which should be loaded using = jQuery {{$(document).ready(...)}}. Thanks to CDK templates, it's also simple change in renderers, just move co= mponent contructor to newly created CDK tag {{}}, which w= ould delegate to {{JavaScriptService}} (if {{JavaScriptService}} not found,= 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 = --===============4953795975464635696==--