discourse/app/assets/javascripts
Alan Guo Xiang Tan 7d8dd0d8e3
UX: Show loading spinner while loading dependencies for ace-editor (#26099)
Why this change?

On a slow network, using the `AceEditor` component will result in a blob
of text being shown first before being swapped out with the `ace.js`
editor after it has completed loading.

There is also a problem when setting the theme for the editor which
would result in a "flash" as reported in
https://github.com/ajaxorg/ace/issues/3286. To avoid this, we need to
load the theme js file before displaying the editor.

What does this change do?

1. Adds a loading spinner and set the `div.ace` with a `.hidden` class.
2. Once all the relevant scripts and initialization is done, we will
   then remove the loading spinner and remove `div.ace`.
2024-03-11 06:56:17 +08:00
..
admin UX: Show loading spinner while loading dependencies for ace-editor (#26099) 2024-03-11 06:56:17 +08:00
bootstrap-json Build(deps-dev): Bump html-entities from 2.4.0 to 2.5.2 (#26021) 2024-03-05 22:56:43 +01:00
deprecation-silencer DEV: Update ember-cli to 5.6.0 (#25886) 2024-02-27 10:48:30 +01:00
dialog-holder DEV: Use the "new" service import (#26059) 2024-03-06 18:05:11 +01:00
discourse UX: Show loading spinner while loading dependencies for ace-editor (#26099) 2024-03-11 06:56:17 +08:00
discourse-common Build(deps-dev): Bump ember-cli from 5.6.0 to 5.7.0 (#26039) 2024-03-06 21:05:09 +01:00
discourse-hbr Build(deps-dev): Bump ember-cli from 5.6.0 to 5.7.0 (#26039) 2024-03-06 21:05:09 +01:00
discourse-i18n DEV: Update ember-cli to 5.6.0 (#25886) 2024-02-27 10:48:30 +01:00
discourse-markdown-it FEATURE: Allow rowspan and colspan attributes on HTML tables (#20973) 2024-02-28 16:59:36 +11:00
discourse-plugins Build(deps-dev): Bump ember-cli from 5.6.0 to 5.7.0 (#26039) 2024-03-06 21:05:09 +01:00
discourse-widget-hbs Build(deps-dev): Bump ember-cli from 5.6.0 to 5.7.0 (#26039) 2024-03-06 21:05:09 +01:00
docs
ember-addons
ember-cli-progress-ci
ember-production-deprecations DEV: Add production-mode shim for Em deprecation (#25109) 2024-01-03 10:39:59 +00:00
float-kit Build(deps-dev): Bump ember-cli from 5.6.0 to 5.7.0 (#26039) 2024-03-06 21:05:09 +01:00
locales DEV: convert I18n pseudo package into real package (discourse-i18n) (#23867) 2023-10-12 14:44:01 +01:00
pretty-text Build(deps-dev): Bump ember-cli from 5.6.0 to 5.7.0 (#26039) 2024-03-06 21:05:09 +01:00
select-kit FEATURE: Improve "+ subcategories" option (#26086) 2024-03-07 20:46:45 +02:00
theme-transpiler Build(deps): Bump terser from 5.28.1 to 5.29.1 (#26067) 2024-03-07 01:05:32 +01:00
truth-helpers DEV: Convert truth-helpers to a v2 addon and simplify imports (#26029) 2024-03-05 15:24:47 +00:00
.npmrc
handlebars-shim.js
polyfills.js
run-patch-package
service-worker.js.erb FIX: Service worker push notifications when cache disabled (#25610) 2024-02-08 11:55:32 +00:00