zulip/static
YashRE42 33af1c1cd6 resize: Fix expensive navbar.resize_app calls leaving recent_topics.
It turns out that the bug this call hopes to fix only happens when the
user first loads the page to recent_topics and then navigates to a
view with a message list (any other view), but we'd make this call
every time the recent topics table was hidden.

Hence, this commit makes it such that we only make that call if (1)
the page is loaded to recent_topics and (2) we're switching from
recent_topics to a message list view for the first time.  We achieve
(1) via binding a handler via ui_init.initialize_everything and (2) by
binding the handler as `.one`, so that it's unbound after its first
invocation.

Additionally, we use window.requestAnimationFrame to prevent this
forcing the browser to do a reflow unnecessarily.

Combined with other commits in this series, this fixes a major
performance problem when leaving recent topics for another view.

See #20255 for details.
2022-03-18 18:23:34 -07:00
..
assets icons: Clean up globe icon. 2022-03-11 10:10:12 -08:00
audio
generated
html templates: Mark all void tags as self-closing. 2021-04-21 09:49:34 -07:00
images policies: Fix effective date on most recent DPA update. 2022-03-07 12:01:25 -08:00
js resize: Fix expensive navbar.resize_app calls leaving recent_topics. 2022-03-18 18:23:34 -07:00
shared dependencies: Upgrade JavaScript dependencies. 2022-03-17 15:24:46 -07:00
styles CSS: Deduplicate CSS in image_upload_widget.css. 2022-03-18 14:43:13 -07:00
templates popovers: Support reactivating users from user profile popover. 2022-03-18 15:19:13 -07:00
third typeahead: Update / hide typeahead menu on clicking outside. 2022-03-18 14:59:28 -07:00
.gitignore docs: Add missing space in “time zone”. 2022-02-24 14:05:12 -08:00