Wicket
  1. Wicket
  2. WICKET-5160

Throttle the animation in DebugWindow when there are many errors

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 6.7.0
    • Fix Version/s: 6.8.0
    • Component/s: wicket
    • Labels:
      None

      Description

      When the Ajax response causes several/many errors the debug window starts flashing for any logged error. This may lead to unresponsiveness.

      It would be good to throttle the animation and execute it once the logging of the errors have finished (for some period)

        Activity

        Hide
        Martin Grigorov added a comment -

        From now on the animation will be postponed for 300ms after the last error. If an error occurs during this period the timer is reset.

        Extra note: this change makes wicket-ajax-jquery-debug.js depending on wicket-ajax-jquery.js. I see no use case when the debug window will be used without wicket-ajax.js. The throttling can be easily implemented with clearTimeout/setTimeout if needed.

        Show
        Martin Grigorov added a comment - From now on the animation will be postponed for 300ms after the last error. If an error occurs during this period the timer is reset. Extra note: this change makes wicket-ajax-jquery-debug.js depending on wicket-ajax-jquery.js. I see no use case when the debug window will be used without wicket-ajax.js. The throttling can be easily implemented with clearTimeout/setTimeout if needed.

          People

          • Assignee:
            Martin Grigorov
            Reporter:
            Martin Grigorov
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development