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

Race condition while loading javascript file via ajax

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.3.5
    • 5.4
    • tapestry-core
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: