Task #92766

Don't minify BE javascript files

Added by Christian Toffolo 3 months ago. Updated 2 months ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2020-11-04
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

The backend doesn't really need to have minified JS files. It's used by a relative small amount of users that will easily have these files in browser cache.
On the other hand, having these files minified means making harder the work of the backend developers.
Yes, you can pretty print them in browser dev tools but you will still have an harder to understand code.

My suggestion is to not minify the Javascript files of the backend.

#1

Updated by Georg Ringer 3 months ago

  • Status changed from New to Rejected

Hi,

thanks for creating the issue. Although it might help for debugging a bit there are more reasons why those are minified:
- Editors are only satisfied if the backend which is their daily tool is fast. If the editors aren't happy, TYPO3 might not be the best tool anymore
- The JS code is converted already in most of the times from TypeScript anyway

To improve the understanding I suggest you checkout https://github.com/TYPO3/TYPO3.CMS/tree/master/Build/Sources/TypeScript which the source of truth.

#2

Updated by Christian Toffolo 2 months ago

Hi Georg,

1. Not a big deal for editors eventually. The difference in KB in this case is minimal and it only affect the first hit then it's browser cached.

2. Instead it's a big deal for developers I guess. Especially for new comers that are trying to understand what's happening in the BE at JS level. Dev tool debugging a minified JS (even pretty printed) it's hard for obvious reasons.

So IMHO the benefits of 2. surpasses by far the small delay of 1.

Also available in: Atom PDF