discourse/app/assets/javascripts
Alan Guo Xiang Tan ce2bd96590
PERF: Client side triggering multiple requests when opening composer (#21925)
What is the problem?

When opening the composer, we are seeing multiple requests made to
the `/composer_messages` endpoint. This is due to our use of the
`transitionend` event on the `#reply-control` element. The event is
fired once for each transition event and the `#reply-control` element
has multiple transition events.

What is the solution?

Since are only interested in the `height` transition event, we add a
condition to check that the callback function is only triggered when the
`propertyName` of the `transitionend` event is `height`.

Why is there no tests for this change?

In QUnit, we have `transition: none !important` set in the stylesheet
with no easy way to disable. We'll have to accept the risk of not
writing test for this performance fix.
2023-06-05 11:12:38 +08:00
..
admin Build(deps): Bump webpack from 5.84.1 to 5.85.0 in /app/assets/javascripts (#21871) 2023-06-01 10:37:14 +08:00
bootstrap-json Build(deps): Bump jsdom from 22.0.0 to 22.1.0 in /app/assets/javascripts (#21793) 2023-05-29 12:59:56 +02:00
confirm-new-email DEV: Add error message styling (#21225) 2023-04-25 08:40:18 -04:00
dialog-holder Build(deps): Bump webpack from 5.84.1 to 5.85.0 in /app/assets/javascripts (#21871) 2023-06-01 10:37:14 +08:00
discourse PERF: Client side triggering multiple requests when opening composer (#21925) 2023-06-05 11:12:38 +08:00
discourse-common Build(deps): Bump webpack from 5.84.1 to 5.85.0 in /app/assets/javascripts (#21871) 2023-06-01 10:37:14 +08:00
discourse-hbr Build(deps): Bump webpack from 5.84.1 to 5.85.0 in /app/assets/javascripts (#21871) 2023-06-01 10:37:14 +08:00
discourse-plugins Build(deps): Bump webpack from 5.84.1 to 5.85.0 in /app/assets/javascripts (#21871) 2023-06-01 10:37:14 +08:00
discourse-widget-hbs Build(deps): Bump webpack from 5.84.1 to 5.85.0 in /app/assets/javascripts (#21871) 2023-06-01 10:37:14 +08:00
docs
ember-addons
ember-cli-progress-ci
ember-production-deprecations DEV: Include ember deprecation messages in production builds (#20587) 2023-03-10 10:37:28 +00:00
locales UX/DEV: Review queue redesign fixes (#20239) 2023-03-02 16:40:53 +01:00
patches DEV: Update ember-cli to 4.12.0 (#21074) 2023-04-19 12:58:29 +02:00
pretty-text Build(deps): Bump webpack from 5.84.1 to 5.85.0 in /app/assets/javascripts (#21871) 2023-06-01 10:37:14 +08:00
select-kit Build(deps): Bump webpack from 5.84.1 to 5.85.0 in /app/assets/javascripts (#21871) 2023-06-01 10:37:14 +08:00
truth-helpers Build(deps): Bump webpack from 5.84.1 to 5.85.0 in /app/assets/javascripts (#21871) 2023-06-01 10:37:14 +08:00
wizard Build(deps): Bump webpack from 5.84.1 to 5.85.0 in /app/assets/javascripts (#21871) 2023-06-01 10:37:14 +08:00
.licensee.json Revert "DEV: Merge package.json files (#21172)" (#21182) 2023-04-20 14:57:40 +02:00
.npmrc
discourse-js-processor.js DEV: Update ember-cli-htmlbars to 6.2.0 (#20467) 2023-02-27 18:43:28 +01:00
handlebars-shim.js
package.json DEV: Move app build-time dependencies to devDependencies (#21310) 2023-05-03 09:25:13 +01:00
polyfills.js Drop support for iOS < 15.7 (#19847) 2023-01-16 17:28:59 +00:00
service-worker.js.erb FIX: Service worker for Safari (#21435) 2023-05-09 18:36:20 +03:00
yarn.lock Build(deps-dev): Bump eslint from 8.41.0 to 8.42.0 in /app/assets/javascripts (#21921) 2023-06-05 08:03:03 +08:00