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

        Ted Goddard created issue -
        Ted Goddard made changes -
        Field Original Value New Value
        Fix Version/s 1.7.2 [ 10130 ]
        Assignee Ken Fyten [ ken.fyten ]
        Ken Fyten made changes -
        Assignee Priority P2
        Assignee Ken Fyten [ ken.fyten ] Mircea Toma [ mircea.toma ]
        Ken Fyten made changes -
        Assignee Priority P2 P1
        Ken Fyten made changes -
        Comment [ A comment with security level 'icesoft-internal-developers' was removed ]
        Ken Fyten made changes -
        Comment [ That last comment was from a different case. Just ignore. ]
        Ken Fyten made changes -
        Fix Version/s 1.7.2RC1 [ 10140 ]
        Fix Version/s 1.7.2 [ 10130 ]
        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?
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #17520 Tue Sep 09 03:05:06 MDT 2008 mircea.toma ICE-3467 Get JS files synchronously to guarantee the order of evaluation of script elements in the page.
        Files Changed
        Commit graph MODIFY /icefaces/trunk/icefaces/bridge/src/script.js
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #17521 Tue Sep 09 03:06:44 MDT 2008 mircea.toma ICE-3467 Get JS files synchronously to guarantee the order of evaluation of script elements in the page.
        Files Changed
        Commit graph MODIFY /icefaces/branches/icefaces-1.7/icefaces/bridge/src/script.js
        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.
        Mircea Toma made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        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.
        Mircea Toma made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        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.
        Ken Fyten made changes -
        Fix Version/s 1.7.2 [ 10130 ]
        Fix Version/s 1.7.2RC1 [ 10140 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Assignee Priority P1
        Assignee Mircea Toma [ mircea.toma ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: