[TIMOB-7101] MobileWeb: CSS rule manager
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Low |
Status | Closed |
Resolution | Won't Fix |
Resolution Date | 2017-05-01T22:25:43.000+0000 |
Affected Version/s | Release 2.0.0 |
Fix Version/s | n/a |
Components | MobileWeb |
Labels | linvalid |
Reporter | Chris Barber |
Assignee | Chris Barber |
Created | 2012-01-11T12:09:38.000+0000 |
Updated | 2018-04-04T23:20:40.000+0000 |
Description
Setting styles on many DOM nodes can be a huge performance issue and cause multiple reflows. The browser is capable of optimizing the number of style changes per reflow by applying a CSS rule that contains several style settings.
A CSS rule manager would create multiple rules and apply them based on common style changes.
For example, if ever DOM node is set to a specific font and color, it is more efficient for a CSS rule manager to create a rule, then add the rule to each node.
We may need to break up rules into categories (background, font, size, pointer events, transitions, etc). Since the style properties will vary, perhaps a hash of the properties and their values can be used to speed up creation and applying of rules.
Closing ticket as "Won't Fix" as MobileWeb is no longer supported.
Closing as will not fix.