# Bug OP-12425 - Opening of CKEditor sporadicallly taking 10s+ when trying to comment on work packages

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-12425

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 12.5.8 |
| Observed in versions | 12.5.0 |
| Sprint | 12.5.8 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 12.5.x |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

This happens sporadically and is therefore tricky to reliably reproduce. At the least the first occurrence in a day should be doable, though.

1.  Try to comment on any work package

### What is the buggy behavior?

*   The save/close buttons appear right away but then it takes 10 seconds or more for the actual editor to show.

### What is the expected behavior?

1.  The editor should show right away.

### Screenshots and other files

<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/55388/content">

### Environment information

_Please check and fill out the following details to help us identify in what versions and distributions of OpenProject the error occurs_

**OpenProject installation type**

*   [x] Hosted cloud edition
*   [ ] Packaged installation
    *   What distribution?
*   [ ] Docker All-in-one container
*   [ ] Docker-compose installation
*   [ ] Other (please specify)

**OpenProject version**

v12.5.2

**Browser**

*   [x] Chrome
*   [x] Firefox
*   [ ] Safari
*   [ ] Mobile Safari
*   [x] Other (please specify)

## Discussion

*   as seen in the screenshot the ckeditor Javascript is a massive 1.2mb large and in that example took almost 7 seconds just to be downloaded
    *   this happens every day and sporadically through the day for the users
*   it gets downloaded from OpenProject rather than a CDN
*   it is not compressed
*   it could simply be that the user has a low bandwidth, coming to think of it, one way to reproduce this is then to reduce bandwidth in the network tab after having opened the work package already and before trying to comment on it

**Suggesstions**

*   the ckeditor js should come from a CDN and it should be compressed and, most importantly, cached
