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

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

Denis Stepanov created TAP5-2001:
------------------------------------

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

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

Posted by "Denis Stepanov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-2001?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13455756#comment-13455756 ] 

Denis Stepanov commented on TAP5-2001:
--------------------------------------

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

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

Posted by "Dragan Sahpaski (JIRA)" <ji...@apache.org>.
    [ 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

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

Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-2001?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13458857#comment-13458857 ] 

Howard M. Lewis Ship commented on TAP5-2001:
--------------------------------------------

I suspect this only affects Tapestry 5.3; 5.4 (at least in the 5.4-js-rewrite branch) has switched over to use RequireJS, which manages these kinds of things sanely.
                
> 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

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

Posted by "Dragan Sahpaski (JIRA)" <ji...@apache.org>.
    [ 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

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

Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-2001?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13458857#comment-13458857 ] 

Howard M. Lewis Ship commented on TAP5-2001:
--------------------------------------------

I suspect this only affects Tapestry 5.3; 5.4 (at least in the 5.4-js-rewrite branch) has switched over to use RequireJS, which manages these kinds of things sanely.
                
> 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

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

Posted by "Denis Stepanov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-2001?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13455756#comment-13455756 ] 

Denis Stepanov commented on TAP5-2001:
--------------------------------------

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