Skip to content

Rendering on scroll should maybe be quicker #8

@mwoc

Description

@mwoc

In IE11, the behaviour of knockout.list seems slightly less responsive than on Firefox and Chrome. I've done some comparison of how these browsers use knockout.list and found the following:

renderViewPort call rate:

IE11, Chrome:
When using regular scrolling, the renderViewPort calls are 100ms - 430ms apart and all come from the renderTimer, none from renderInterval

Firefox:
Almost all renderViewPort calls come from renderInterval and are 380ms - 390ms apart.

Scroll behaviour:

Firefox, IE11:
Scroll continues after mouse wheel has stopped rotating

Chrome:
Scroll stops immediately when mouse wheel stops rotating

Suggestions:

IE11 and Chrome seem to spit out more scroll events per second than Firefox, so the renderInterval code path is almost never used. Decreasing the renderInterval timeout to 200ms gives a mix of interval and timer calls in Chrome, IE11, but still only interval calls in Firefox, but it gives a smoother experience in IE11.

Would it be ok to decrease the renderInterval timeout to 200ms ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions