discourse/app/assets/javascripts
David Taylor 33d5845991
FIX: Avoid scroll jumping for topics on slow connections (#23290)
When the 'loading slider' navigation indicator is enabled, and a connection is very slow, we `display: none` most of the page and display a spinner. The `still-loading` body class for this was being added in the `afterRender` step in the Ember runloop. This meant that, depending on the order they were scheduled, other `afterRender` jobs may run before it. This caused an issue with topic scroll locations because we would attempt to scroll to an element which was `display: none` at the point its position was calculated.

This commit moves the `still-loading` class manipulations to the `render` step of the runloop, which is technically more correct, and means that anything scheduled in the `afterRender` step is guaranteed to run without the `display: none` CSS.

https://meta.discourse.org/t/276305/29
2023-08-28 12:23:02 +01:00
..
admin FIX: Improve admin plugin list and modernize code (#23256) 2023-08-28 10:48:59 +10:00
bootstrap-json DEV: Fix ember-cli proxy assets (#22674) 2023-08-01 18:43:33 +01:00
confirm-new-email DEV: Add error message styling (#21225) 2023-04-25 08:40:18 -04:00
deprecation-silencer DEV: move deprecation silencer to a shared package (#22668) 2023-07-18 19:07:20 +01:00
dialog-holder Build(deps): Bump ember-cli-babel in /app/assets/javascripts (#23157) 2023-08-21 11:27:24 +02:00
discourse FIX: Avoid scroll jumping for topics on slow connections (#23290) 2023-08-28 12:23:02 +01:00
discourse-common Build(deps-dev): Bump @babel/core in /app/assets/javascripts (#23224) 2023-08-25 10:51:49 +02:00
discourse-hbr Build(deps-dev): Bump @babel/core in /app/assets/javascripts (#23224) 2023-08-25 10:51:49 +02:00
discourse-plugins Build(deps-dev): Bump @babel/core in /app/assets/javascripts (#23224) 2023-08-25 10:51:49 +02:00
discourse-widget-hbs Build(deps-dev): Bump @babel/core in /app/assets/javascripts (#23224) 2023-08-25 10:51:49 +02:00
docs
ember-addons
ember-cli-progress-ci
ember-production-deprecations DEV: Clean up package.json files (#22349) 2023-06-30 13:01:45 +02:00
locales UX/DEV: Review queue redesign fixes (#20239) 2023-03-02 16:40:53 +01:00
patches DEV: Update ember-cli to 5.0.0 (#22280) 2023-06-26 17:15:59 +02:00
pretty-text Build(deps-dev): Bump @babel/core in /app/assets/javascripts (#23224) 2023-08-25 10:51:49 +02:00
select-kit Build(deps-dev): Bump @babel/core in /app/assets/javascripts (#23224) 2023-08-25 10:51:49 +02:00
truth-helpers Build(deps-dev): Bump @babel/core in /app/assets/javascripts (#23224) 2023-08-25 10:51:49 +02:00
wizard Build(deps-dev): Bump @babel/core in /app/assets/javascripts (#23224) 2023-08-25 10:51:49 +02:00
.licensee.json DEV: Update sub-dependencies (#22325) 2023-06-29 17:08:33 +02:00
.npmrc
handlebars-shim.js
js-processor.js DEV: Use esbuild to make DiscourseJsProcessor (#23223) 2023-08-24 16:36:22 +02:00
package.json DEV: Use esbuild to make DiscourseJsProcessor (#23223) 2023-08-24 16:36:22 +02:00
polyfills.js
service-worker.js.erb FIX: Ensure service-worker cache is cleaned correctly (#23204) 2023-08-23 13:58:32 +01:00
yarn.lock Build(deps-dev): Bump eslint from 8.47.0 to 8.48.0 in /app/assets/javascripts (#23281) 2023-08-28 12:58:31 +08:00