You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Dragan Sahpaski (JIRA)" <ji...@apache.org> on 2012/09/14 14:41:08 UTC

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=13455753#comment-13455753 ] 

Dragan Sahpaski commented on TAP5-2001:
---------------------------------------

How did you find this?

Is it with many progressive displays? Because we've been getting exceptions with many progressive displays on one page but haven't got the time to figure it out yet whats been causing them.


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