discourse/app/assets/javascripts/discourse-common/addon/lib
David Taylor 7ed6195f19
PERF: Stop eagerly-loading core helper modules (#24015)
Now that core has a file structure and default imports, Ember's resolver can load helpers lazily. So we can remove the lazy loading, and helpers in ember templates will continue to work. This should provide a slight performance improvement for initial boot.

However, there is a slight complication: some of our helpers are also registered with our Raw Handlebars system as a side-effect of loading the module. Therefore, this commit adds a `helperMissing` helper to our RawHandlebars system. This looks up the helper by name in the ember resolver, which triggers the relevant module to be evaluated, and the raw helper to be registered as a side effect.

For backwards-compatibility, plugin and theme helpers continue to be eagerly evaluated. Once the `discourse.register-unbound` deprecation is resolved, we can safely remove this eager loading.
2023-10-19 15:52:51 +01:00
..
attribute-hook.js DEV: Replace deprecated String.prototype.substr() (#16233) 2022-04-01 17:35:17 +02:00
avatar-utils.js Consistently import escape from discourse-common (#23790) 2023-10-11 22:21:01 +01:00
debounce.js FIX: reimplements chat audio into a service (#18983) 2022-11-11 13:11:41 +01:00
deprecated.js DEV: Fail core JS test runs if deprecations are triggered (#20614) 2023-03-10 10:39:42 +00:00
discourse-template-map.js DEV: Remove Ember.TEMPLATES and centralize template resolution rules (#19220) 2022-11-29 10:24:35 +00:00
dom-from-string.js DEV: Allow utility class domFromString to take in strings with multiple top level elements (#15548) 2022-01-12 19:49:24 +08:00
escape.js FIX: Escape Font Awesome icons (#12421) 2021-03-17 16:11:40 +03:00
get-owner.js DEV: Rename custom getOwner to getOwnerWithFallback (#23437) 2023-09-26 14:30:52 +01:00
get-url.js FIX: Validate asset url before replacing base url (#16438) 2023-01-30 07:32:48 +08:00
helpers.js DEV: replace registerUnbound usage with default exports (#23802) 2023-10-19 14:28:25 +01:00
icon-library.js DEV: Rename I18n imports to discourse-i18n (#23915) 2023-10-18 11:07:09 +01:00
later.js DEV: Introduce discourseLater (#17532) 2022-07-17 00:50:49 +02:00
loader-shim.js DEV: add loader.js shims for packages used across bundles (#22703) 2023-08-09 12:04:41 +01:00
object.js DEV: Resolve and prevent user fixture changes leaking between tests (#23898) 2023-10-11 13:46:06 +01:00
popular-themes.js UX: update admin popular theme list (#23134) 2023-08-18 09:07:25 -04:00
raw-handlebars-helpers.js PERF: Stop eagerly-loading core helper modules (#24015) 2023-10-19 15:52:51 +01:00
raw-handlebars.js DEV: Use DiscourseJsProcessor for theme template compilation (#18135) 2022-09-01 11:50:46 +01:00
raw-templates.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
suffix-trie.js PERF: Improve JS app boot speed by optimizing customResolve() (#14990) 2021-11-18 16:38:00 +00:00