discourse/app
David Taylor 4d3eb3f1ac
PERF: Set --header-offset property only when changed (#15107)
Calling `setProperty("--header-offset", newValue)` will always cause a 'Recalculate Style' event, even if the value is unchanged. On my browser, these 'Recalculate Style' events take about 6-7ms each time the `dockCheck` function is run.

This commit stores the 'previous' value in an instance variable, and only calls setProperty if the value has changed. This brings the total runtime of `dockCheck` down to about 70µs on my machine.
2021-11-26 15:25:03 +00:00
..
assets PERF: Set --header-offset property only when changed (#15107) 2021-11-26 15:25:03 +00:00
controllers FEATURE: show recent searches in quick search panel (#15024) 2021-11-25 15:44:15 -05:00
helpers DEV: Allow actions to change the manifest endpoint (#14522) 2021-10-06 15:41:52 -05:00
jobs FIX: Delete unconfirmed AND expired email tokens only (#15089) 2021-11-25 10:34:30 +02:00
mailers DEV: Hash tokens stored from email_tokens (#14493) 2021-11-25 09:34:39 +02:00
models DEV: Don't polute all ActiveRecord classes (#15103) 2021-11-26 10:17:10 +08:00
serializers FEATURE: show recent searches in quick search panel (#15024) 2021-11-25 15:44:15 -05:00
services FIX: Use CDN URL for internal onebox avatars (#15077) 2021-11-25 12:07:34 +00:00
views DEV: Hash tokens stored from email_tokens (#14493) 2021-11-25 09:34:39 +02:00