aforemny / elm-mdc

Elm port of the Material Components for the Web CSS/JS library
https://aforemny.github.io/elm-mdc
Apache License 2.0
354 stars 43 forks source link

Use animation frame instead of globaltick event #174

Open berenddeboer opened 5 years ago

berenddeboer commented 5 years ago

Investigate if it's easier, better and possible to rely in requestAnimationFrame instead of the globaltick event. The latter one relies in diffing the virtual dom, and I'm not sure how scalable that is.

The intend is to use the Elm's animation-frame package.

aforemny commented 5 years ago

Hi @berenddeboer, as far as I can tell it is not possible to drop globaltick completely, because:

There are some instances where we could use animation frame rather than globaltick, but I think we cannot get rid of globaltick altogether.