You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org> on 2013/07/25 01:43:48 UTC

[jira] [Closed] (TAP5-2001) Race condition while loading javascript file via ajax

     [ https://issues.apache.org/jira/browse/TAP5-2001?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship closed TAP5-2001.
--------------------------------------

       Resolution: Fixed
    Fix Version/s: 5.4
         Assignee: Howard M. Lewis Ship

This is addressed in 5.4 by the switch to the RequireJS library to perform asynchronous loading of JavaScript libraries and modules.
                
> Race condition while loading javascript file via ajax
> -----------------------------------------------------
>
>                 Key: TAP5-2001
>                 URL: https://issues.apache.org/jira/browse/TAP5-2001
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.3.5
>            Reporter: Denis Stepanov
>            Assignee: Howard M. Lewis Ship
>             Fix For: 5.4
>
>
> Two or more concurrent AJAX requests requires 'example.js' javascript to load:
> First request:
>   Adds script tag with src 'example.js'  ... waits script to load
> Second request:
>   Finds script 'example.js', thinks its already loaded and continues to process request -> causes error because script is not loaded yet
>  

--
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