Prefer using minified JS from ACE builds for performance

Created on 20 November 2022, about 2 years ago
Updated 19 June 2024, 5 months ago

Problem/Motivation

The module currently loads /{{ACE_DIRECTORY}}/src/ js files by default. The ACE builds package offers minified js and using them instead results in smaller js size loaded and delivered over the network.

Steps to reproduce

Enable the filter on a text format. Add content on a page using the ace syntax and check the network loaded assets. They will be from the regular src directory.

Proposed resolution

Update ace_editor_lib_path() to detect and use the src-mindirectory if available.

✨ Feature request
Status

Needs work

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States angrytoast Princeton, NJ

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024