[richfaces-issues] [JBoss JIRA] (RF-11822) Load components onload (on page ready)
Brian Leathem (Updated) (JIRA)
jira-events at lists.jboss.org
Thu Dec 22 18:02:09 EST 2011
[ https://issues.jboss.org/browse/RF-11822?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brian Leathem updated RF-11822:
-------------------------------
Fix Version/s: 4.2.0.Tracking
Component/s: resource handling
(was: core)
> 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áš Fryč
> Labels: yahoo_performance_recommendations
> Fix For: 4.2.0.Tracking
>
>
> According to Yahoo performance recommendations ([1], see "Post-load Components"),
> visual components should be loaded on page load ({{onload}} event)
> to avoid heavy JavaScript processing before page is completely visually built.
> 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 component contructor to newly created CDK tag {{<cdk:onloadScript>}}, which would delegate to {{JavaScriptService}} (if {{JavaScriptService}} not found, processing may fall back to rendering {{<script>window.addEventHandler('load', ...)</script>}}, 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 administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list