Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-2001

Race condition while loading javascript file via ajax

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.3.5
    • Fix Version/s: 5.4
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      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

        Attachments

          Activity

            People

            • Assignee:
              hlship Howard M. Lewis Ship
              Reporter:
              denis.stepanov Denis Stepanov
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: