[richfaces-issues] [JBoss JIRA] (RF-11822) Load components onload (on page ready) with JavaScriptService

Lukáš Fryč (JIRA) jira-events at lists.jboss.org
Thu Oct 18 12:21:01 EDT 2012


     [ https://issues.jboss.org/browse/RF-11822?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lukáš Fryč 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áš Fryč
>              Labels: yahoo_performance_recommendations
>             Fix For: 5-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
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the richfaces-issues mailing list