@Findus23 opened this Issue on January 17th 2020 Member

related to https://github.com/matomo-org/matomo/pull/12774
also related to https://github.com/matomo-org/matomo/issues/5165

The last release for yuicompressor is nearly 7 years old. Especially for a fast moving language like Javascript this means that it was designed for browsers that have little in common with the ones that exist now.

Of course after replacing it with a maintained minifier we need to test if all features still work and that the minifier doesn't use any features that are missing in ancient browsers,

@tsteur commented on January 20th 2020 Member

Of course after replacing it with a maintained minifier we need to test if all features still work and that the minifier doesn't use any features that are missing in ancient browsers,

This might be bit hard?

Just to understand: Is the benefit that it will result in a slightly smaller minified JS basically?

Since this is basically no breaking change for users, I would prefer to move this into the priority backlog or 4.1 or 4.2 for now to keep 4.0 as small as possible (otherwise takes much longer to work on 4.0).

Maybe a quick test be to use some modern minifier, then use the minifier we use, and see how much different the resulting JS file size is to evaluate if it's worth doing or not.

Powered by GitHub Issue Mirror