requestAnimationFrame() is the web browser equivalent of Flash's
Event.ENTER_FRAME.

https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame

- Josh


On Jan 15, 2017 11:50 AM, "Carlos Rovira" <[email protected]> wrote:

Hi Om,

2017-01-15 19:58 GMT+01:00 OmPrakash Muppirala <[email protected]>:

>
> I prefer we create a ComponentUIBase based on UIBase and add this logic
> here. And make all components extend ComponentUIBase instead of UIBase.
>
>
But considere that at least in MDL we are in many cases extending FlexJS
basic components (Button, TextField...)
To do that, we'd need to replicate all the structure, what seems a
significant work.


> Yes,  we should use the requestAnimationFrame method and do all the reads
> and writes in one go.  That would improve rendering  performance as well.
>
>
>
I didn't know about that method. I'm trying to search for
"requestAnimationFrame" in projects folder and subfolders but didn't find
anything. Could you provide more info?

Thanks!

Reply via email to