jellyfin / jellyfin-web

Web Client for Jellyfin
https://jellyfin.org
GNU General Public License v2.0
2.29k stars 1.22k forks source link

Minify Jellyfin's JavaScript files #383

Closed ghost closed 5 years ago

ghost commented 5 years ago

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

joshuaboniface commented 5 years ago

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.

dkanada commented 5 years ago

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