[ 
https://issues.jboss.org/browse/RF-11822?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12692613#comment-12692613
 ] 

Lukáš Fryč commented on RF-11822:
---------------------------------

Look also at duplicates for possible solutions: RF-8963, RF-7572
                
> 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.3-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

       

_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues

Reply via email to