Why the doc says background-color is faster than backgroundColor?
#2245
Unanswered
LongTengDao
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I'm a new mvvm engine author.
In my simple test,
style['backgroundColor']='red'andstyle['background-color']='red'is always faster thanstyle.setProperty('background-color','red')in Chrome / Safari / Firefox / Edge.Whay solidjs choose
.setPropertyunder the hood, which expect better performance? Thanks!@ryansolid
Beta Was this translation helpful? Give feedback.
All reactions