discourse/app
David Taylor 76d5e54aab
PERF: Check for modal visibility in a more efficient way
This code runs on every keyup event in the application, so it needs to be efficient. Previously we were iterating over the whole document using the JQuery :visible selector. Per the JQuery docs at https://api.jquery.com/visible-selector/

> Using this selector heavily can have performance implications, as it may force the browser to re-render the page before it can determine visibility. Tracking the visibility of elements via other methods, using a class for example, can provide better performance.

We already had a `hidden` class on the modal element which we can check, so we can check that instead.
2020-07-01 17:49:23 +01:00
..
assets PERF: Check for modal visibility in a more efficient way 2020-07-01 17:49:23 +01:00
controllers PERF: cache all metadata for 60 seconds 2020-07-01 12:58:02 +10:00
helpers New bootstrap.json endpoint for starting up Discourse 2020-06-03 14:45:23 -04:00
jobs DEV: improve verbose mode for reindexer 2020-06-24 17:29:45 +10:00
mailers FIX: Use correct URL for unsubscribe (#10077) 2020-06-24 09:31:20 +02:00
models FIX: identify slug-less topic urls everywhere 2020-06-29 12:31:20 +02:00
serializers PERF: Exclude image_url and thumbnails from SearchTopicListItemSerializer. 2020-07-01 14:28:31 +08:00
services FIX: update theme fields when updating from ThemesInstallTask (#10143) 2020-06-29 13:49:02 -05:00
views UX: Add Login button on 403 error page if user is not logged in (#10154) 2020-07-01 18:27:42 +03:00