umbraco / Umbraco-CMS

Umbraco is a free and open source .NET content management system helping you deliver delightful digital experiences.
https://umbraco.com
MIT License
4.37k stars 2.64k forks source link

[v14] Backoffice assets are not bundled and minified? #16537

Open PerplexDaniel opened 1 month ago

PerplexDaniel commented 1 month ago

Which Umbraco version are you using? (Please write the exact version, example: 10.1.0)

14.0.0

Bug summary

I hope I am wrong but it looks like the v14 Backoffice assets (.js / .css files) are not bundled and minified like in earlier versions but are individually loaded instead. This results in 2000+ files being loaded, the vast majority of which are JavaScript files. Not only that, the files are not minified either so way more data is transferred than necessary.

image

Note I have set Debug to false in appsettings.Development.json but this does not seem to have any effect unlike in < v14 versions. I have also tested setting ASPNETCORE_ENVIRONMENT to Production but this did not change the behavior either.

"Umbraco": {
    "CMS": {
      "Hosting": {
        "Debug": false
      }
    }
  }

Specifics

No response

Steps to reproduce

  1. Open v14 Backoffice
  2. Open Developer Tools > Network tab
  3. Reload page
  4. Observe 2k+ unminified files are loaded

Expected result / actual result

I expected a minimal amount of bundled & minified JavaScript to be loaded but instead 2000 unminified JavaScript files are loaded.

github-actions[bot] commented 1 month ago

Hi there @PerplexDaniel!

Firstly, a big thank you for raising this issue. Every piece of feedback we receive helps us to make Umbraco better.

We really appreciate your patience while we wait for our team to have a look at this but we wanted to let you know that we see this and share with you the plan for what comes next.

We wish we could work with everyone directly and assess your issue immediately but we're in the fortunate position of having lots of contributions to work with and only a few humans who are able to do it. We are making progress though and in the meantime, we will keep you in the loop and let you know when we have any questions.

Thanks, from your friendly Umbraco GitHub bot :robot: :slightly_smiling_face:

madsrasmussen commented 1 month ago

Hi @PerplexDaniel

Thanks for the report. This is on our TODO list to get fixed 👍