Problem/Motivation
This is a very large, already minified file, that gets aggregated with different sets of files on different pages (e.g. if different node types have different ckeditor configurations or other CSS/JS added to the form.
Excluding it from aggregations should reduce bytes transferred in performance tests by quite a bit.
Spinning this out from #3615654: Add aggregate_target to core and ckeditor5 libraries to do on its own so it's easier to see the impact and because it should be backportable to a patch release if we want to.
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
Introduced terminology
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|
Issue fork drupal-3615749
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3615749-11x
changes, plain diff MR !16722
- 3615749-exclude-ckeditor5.css-from
changes, plain diff MR !16632
Comments
Comment #2
catchYep nearly half the bytes for stylesheets, because this is a 218kb file. So if it gets served in three different aggregates on three different pages, that's 436kb of unnecessary file transfer.
Comment #4
smustgrave commentedNot sure but could this be related?
Comment #5
catch@smustgrave it's not clear. There's pretty much no way this can be introducing a bug in ckeditor, but it probably is affecting page render timing, which could cause what was previously a random failure to be a persistent random failure. I reran that job a couple of times and the test failed pretty consistently, but I think it's something to be fixed in that test rather than this issue as such.
Comment #6
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue. The merge request has merge conflicts and cannot be merged. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.
Comment #7
catchRebased.
Comment #8
smustgrave commentedKnow for a fact
Is random as it pops up on almost every MR.
Comment #10
godotislateCommitted 4e897a5 and pushed to main. Thanks!
11.x has conflicts in the test numbers as well as the libraries file, since it doesn't use the UMD.
Comment #12
catchStarted work on a backport then realised the dll ckeditor5 doesn't ship with a ckeditor5.css at all (or any other single CSS file that we include with a library). Moving back to fixed against main.