John Cowen 63a0582fa3 ui: Reduce mutation of html.classList (#5974)
Throughout the app we mutate the value of the root node classList on
navigation between separate pages (basically on URL change).

Every template has a unique classList for example `template-service
template-show` and `template-service template-list` etc etc.

When navigating between 2 pages, both pages using the same template yet
with different data, previoulsy we would entirely clear out the
`html.classList` and then refill it again with eaxctly the same classes.

This commit moves this to perform a diff previous to mutating the
classList, and then potentially no classList mutating is needed when
moving between 2 pages of the same template.
2019-09-04 08:35:03 +00:00
..
2018-05-10 19:52:53 +01:00
2018-05-10 19:52:53 +01:00
2018-05-10 19:52:53 +01:00
2019-05-01 18:22:37 +00:00
2019-05-01 18:22:37 +00:00
2018-10-19 08:45:05 -07:00
2018-05-10 19:52:53 +01:00
2018-10-19 08:45:05 -07:00
2019-05-01 18:21:34 +00:00
2019-05-01 18:22:37 +00:00
2019-05-01 18:22:37 +00:00
2018-05-10 19:52:53 +01:00
2019-05-01 18:22:37 +00:00
2018-10-19 08:45:05 -07:00
2019-05-01 18:22:37 +00:00
2019-05-01 18:22:10 +00:00
2018-05-10 19:52:53 +01:00
2019-05-01 18:22:37 +00:00
2019-05-01 18:22:37 +00:00
2019-05-01 18:22:10 +00:00