You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Werner Punz (JIRA)" <de...@myfaces.apache.org> on 2011/03/11 21:51:59 UTC
[jira] Created: (MYFACES-3071) jsf.js: improve dynamic code loading
jsf.js: improve dynamic code loading
------------------------------------
Key: MYFACES-3071
URL: https://issues.apache.org/jira/browse/MYFACES-3071
Project: MyFaces Core
Issue Type: Improvement
Affects Versions: 2.0.4
Reporter: Werner Punz
Priority: Minor
Up until now we have used synchronous http get requests and evals to load the scripts. Now html5 opens another way we still can use the head appendix method but differently than before, we simply have to move it over to the addition of script src elements with async set to false and true depending on the script being loadable asynchronously or not.
Also we can add this mechanism to our existing synchronous load by making the mechanism either asynchronous or synchronous.
We then can redjust our dynamic loading code for the debugging case to this new loading method.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Reopened: (MYFACES-3071) jsf.js: improve dynamic code
loading
Posted by "Werner Punz (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/MYFACES-3071?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Werner Punz reopened MYFACES-3071:
----------------------------------
it seems that the new code loading facilities are flakey so I will postpone to enable it until the browsers have resolved the issue
> jsf.js: improve dynamic code loading
> ------------------------------------
>
> Key: MYFACES-3071
> URL: https://issues.apache.org/jira/browse/MYFACES-3071
> Project: MyFaces Core
> Issue Type: Improvement
> Affects Versions: 2.0.4
> Reporter: Werner Punz
> Priority: Minor
> Fix For: 2.0.5-SNAPSHOT
>
>
> Up until now we have used synchronous http get requests and evals to load the scripts. Now html5 opens another way we still can use the head appendix method but differently than before, we simply have to move it over to the addition of script src elements with async set to false and true depending on the script being loadable asynchronously or not.
> Also we can add this mechanism to our existing synchronous load by making the mechanism either asynchronous or synchronous.
> We then can redjust our dynamic loading code for the debugging case to this new loading method.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Resolved: (MYFACES-3071) jsf.js: improve dynamic code
loading
Posted by "Werner Punz (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/MYFACES-3071?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Werner Punz resolved MYFACES-3071.
----------------------------------
Resolution: Fixed
Fix Version/s: 2.0.5-SNAPSHOT
> jsf.js: improve dynamic code loading
> ------------------------------------
>
> Key: MYFACES-3071
> URL: https://issues.apache.org/jira/browse/MYFACES-3071
> Project: MyFaces Core
> Issue Type: Improvement
> Affects Versions: 2.0.4
> Reporter: Werner Punz
> Priority: Minor
> Fix For: 2.0.5-SNAPSHOT
>
>
> Up until now we have used synchronous http get requests and evals to load the scripts. Now html5 opens another way we still can use the head appendix method but differently than before, we simply have to move it over to the addition of script src elements with async set to false and true depending on the script being loadable asynchronously or not.
> Also we can add this mechanism to our existing synchronous load by making the mechanism either asynchronous or synchronous.
> We then can redjust our dynamic loading code for the debugging case to this new loading method.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Resolved: (MYFACES-3071) jsf.js: improve dynamic code
loading
Posted by "Werner Punz (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/MYFACES-3071?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Werner Punz resolved MYFACES-3071.
----------------------------------
Resolution: Fixed
Ok I left the new mechanism in, but set everything to synchronous to avoid problems, seems to work now and still is faster than xhr get + manual eval
> jsf.js: improve dynamic code loading
> ------------------------------------
>
> Key: MYFACES-3071
> URL: https://issues.apache.org/jira/browse/MYFACES-3071
> Project: MyFaces Core
> Issue Type: Improvement
> Affects Versions: 2.0.4
> Reporter: Werner Punz
> Priority: Minor
> Fix For: 2.0.5-SNAPSHOT
>
>
> Up until now we have used synchronous http get requests and evals to load the scripts. Now html5 opens another way we still can use the head appendix method but differently than before, we simply have to move it over to the addition of script src elements with async set to false and true depending on the script being loadable asynchronously or not.
> Also we can add this mechanism to our existing synchronous load by making the mechanism either asynchronous or synchronous.
> We then can redjust our dynamic loading code for the debugging case to this new loading method.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira