hmerk / main_widget

Repository for colaboration in the main_widget project
Eclipse Public License 2.0
2 stars 2 forks source link

mainWidget - Improvement for display speed #35

Closed NRquadrat closed 1 year ago

NRquadrat commented 1 year ago

Is your feature request related to a problem? Please describe. The visibility of the oh-repeater content is too slow.

Describe the solution you'd like The slow speed comes from the visible parameter in the rows. I suggest using cdd atrribute display: none & display: "". The containers are created initially and only made invisible. First tests show a performance improvement.

Actual:

            - component: f7-row
              config:
                style:
                  width: 100%
                visible: '=vars.objVar ? (vars.objVar.selectSection=="SECTION1") ? true : false : false'

Suggestion:

            - component: f7-row
              config:
                class:
                  - align-items-center
                  - display-flex
                style:
                  width: 100%
                  height: auto
                  display: '=vars.objVar ? (vars.objVar.selectSection=="SECTION1") ? "" : "none !important" : "none !important"'
hmerk commented 1 year ago

Never seen this, but seems to be a good suggestion.