Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

performance issue big time #6781


User avatar
0
[email protected] created

My vendor.js is 22.3MB and my styles.js is 10.4mb. the app runs badly. where and what do i clean up? Which file do I edit to reduce the stuff that's bundled?

Thanks

A


8 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Are you seeing those sizes on development environment or on production ?

    Thanks,

  • User Avatar
    0
    commondesk created

    if you build with these flags the size goes way down.

    ng --prod=true --optimization=true --aot

    I've been having some problems using the --aot flag due to compilation issues.

  • User Avatar
    0
    [email protected] created

    I get this error: what to do?

    Your global Angular CLI version (7.1.2) is greater than your local version (7.1.0). The local Angular CLI version is used.

  • User Avatar
    0
    commondesk created

    sudo npm install -g @angular/cli

    ??

  • User Avatar
    0
    [email protected] created

    just ran that and now:

    Your global Angular CLI version (7.3.8) is greater than your local version (7.1.0). The local Angular CLI version is used.

  • User Avatar
    1
    aaron created
    Support Team

    That's just a warning, not an error?

  • User Avatar
    0
    commondesk created

    BTW, I also found that upgrading from 6.6.1 to 6.9.1 had better performance.

    Not exactly sure what spcifically changed. But is somehow seems faster.

  • User Avatar
    0
    smry created

    I wanted to comment because I recently ran into this issue

    When you update the installed Node, Angular, and Angular CLI software on your computer you can gain better processing and bundling

    As far as sizes are concerned if you already updated Node/Angular, when you build in production mode your files should be optimized

    If you are seeing that there is large file sizes loading to the browser which is causing performance issues, look into compression.

    If you're on IIS: https://docs.microsoft.com/en-us/iis/extensions/iis-compression/iis-compression-overview