Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.7.1
    • Fix Version/s: 1.7.2
    • Component/s: Bridge
    • Labels:
      None
    • Environment:
      ICEfaces, ILOG JViews

      Description


      When the ILOG JavaScript files are dynamically loaded, they do not execute as expected. The sample application exhibits this when the user switches between diagrammer and charting views.

        Activity

        Hide
        Mircea Toma added a comment -

        Javascript files are loaded asynchronously which can change the order of the evaluation of "script" elements in the updated page.

        Show
        Mircea Toma added a comment - Javascript files are loaded asynchronously which can change the order of the evaluation of "script" elements in the updated page.
        Hide
        Ted Goddard added a comment -

        Will it be possible for us to load the JavaScript files asynchronously, but execute them only in page order?

        Show
        Ted Goddard added a comment - Will it be possible for us to load the JavaScript files asynchronously, but execute them only in page order?
        Hide
        Mircea Toma added a comment -

        That will still require a blocking/waiting mechanism to guarantee the order of execution.

        Show
        Mircea Toma added a comment - That will still require a blocking/waiting mechanism to guarantee the order of execution.
        Hide
        Mircea Toma added a comment -

        Get JS files synchronously to guarantee the order of evaluation of script elements in the page.

        Show
        Mircea Toma added a comment - Get JS files synchronously to guarantee the order of evaluation of script elements in the page.
        Hide
        Ken Fyten added a comment -

        What are the performance implications of loading JS files synchronously?

        Show
        Ken Fyten added a comment - What are the performance implications of loading JS files synchronously?
        Hide
        Mircea Toma added a comment -

        When the JS files are loaded the first time (not cached) the user will maybe notice a delay for the updates to be applied. The delay will depend on factors like connection speed and size of files.

        Show
        Mircea Toma added a comment - When the JS files are loaded the first time (not cached) the user will maybe notice a delay for the updates to be applied. The delay will depend on factors like connection speed and size of files.
        Hide
        Ted Goddard added a comment -

        We believe this to be the correct behavior as it is important that all JavaScript functions are available before the user interacts with the page (potentially invoking JavaScript functions in event handlers). Loading the JavaScript resources synchronously blocks the UI thread until the resources are loaded. If the browser is implemented correctly, they will have separate UI threads for separate windows.

        Show
        Ted Goddard added a comment - We believe this to be the correct behavior as it is important that all JavaScript functions are available before the user interacts with the page (potentially invoking JavaScript functions in event handlers). Loading the JavaScript resources synchronously blocks the UI thread until the resources are loaded. If the browser is implemented correctly, they will have separate UI threads for separate windows.

          People

          • Assignee:
            Unassigned
            Reporter:
            Ted Goddard
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: