Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-25699

Live Data creates a tooltip instance for every cell

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • 18.10.0-rc-1
    • 17.10.0
    • Live Data
    • None
    • Unknown

    Description

      Every Live Data cell wraps its content in a Tippy component (BaseDisplayer.vue), which creates a tippy.js instance with follow-cursor and interactive options, even for cells that cannot be edited and never show a tooltip. Displaying a page of the Live Data creates and destroys one tooltip instance per cell.

      Measured on 18.10.0-SNAPSHOT with a Live Data over 300 XObjects, 8 columns, 100 rows per page, production bundle, main-thread time only (server time excluded).

      • vue-tippy and tippy.js take about 160 ms of the about 490 ms (profiled) page change, about a third.
      • On a refresh with unchanged rows, re-rendering the tooltips takes about 90 ms.

      Proposal: create the tooltip on demand, on the first interaction with a cell (hover or focus), instead of when the cell is displayed.

      Attachments

        Activity

          People

            mleduc Manuel Leduc
            mleduc Manuel Leduc
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: