Jellyfin-web: Minify Jellyfin's JavaScript files

Created on 21 Apr 2019  路  2Comments  路  Source: jellyfin/jellyfin-web

Describe the feature you'd like
I would like you to minify Jellyfin's JavaScript files in order to speed up the page's loading time and responsiveness. You can use UglifyJS 2 to accomplish this task.

Additional context
Here's a report with detailed information about which files need to be minified: https://gtmetrix.com/reports/jellyfin.datahoarder.dev/nZYW8J98

duplicate

Most helpful comment

This is indeed part of a long term plan. The JS we got was pre-minified, with no access to the original source, so we've had to de-minify a lot of it to make it understandable and modifyable. The plan is to make the whole frontend Webpack-compatible (a good chunk of this is already in 10.3.0) then apply minification at build, but we're not there yet.

All 2 comments

This is indeed part of a long term plan. The JS we got was pre-minified, with no access to the original source, so we've had to de-minify a lot of it to make it understandable and modifyable. The plan is to make the whole frontend Webpack-compatible (a good chunk of this is already in 10.3.0) then apply minification at build, but we're not there yet.

This is a duplicate of #21 but you can always track our progress there.

Was this page helpful?
0 / 5 - 0 ratings