What is the problem with calling setStyle()?
When we are instantiating an object and setting the styles for the first time, we should try to apply style sheets rather than use the setStyle() method because it is computationally expensive. This method should only be used when we are changing an object's styles during run time.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment