Chromium Code Reviews
Description[Media Router WebUI] Remove unnecessary default property values.
This change removes default property values if we don't need them at render time. This cuts down initial load time because we avoid unnecessary function (e.g. observer) calls or data binding in the DOM when we only have a placeholder value. The extra calls/bindings happen when properties are set.
On a Linux machine using a debug build, the UI load time is:
- before change: 3533.77ms (average 20 runs)
- after charge: 3468.72ms (average 20 runs)
There is a 1.8% decrease in initial load time observed.
BUG=549289
CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:closure_compilation
Committed: https://crrev.com/f02873962bcfd7a419e9d67e237aedfcee8e2262
Cr-Commit-Position: refs/heads/master@{#391173}
Patch Set 1 : #Patch Set 2 : Rebase. #Patch Set 3 : Rebase. #Messages
Total messages: 22 (14 generated)
|