jadjoubran / laravel5-angular-material-starter

Get started with Laravel 5.3 and AngularJS (material)
https://laravel-angular.readme.io/
MIT License
1.66k stars 401 forks source link

application loading takes too much time (final.js - 1mb) #463

Closed dinesh2017 closed 7 years ago

dinesh2017 commented 7 years ago

Hi, Right now i'm facing browser loading issue. final.js is taking too much time for loading because of the file size. Original file (final.js) size is 4MB because of depended bower_components. After gulp with --production command it is compressed and get file with 1mb. But browser taking much of time for this file loading. Here, I'm showing my bower_components depended files. please guide me how to split this file into 2 or 3 files or else any solution for file compress/browser loading

Thank you,

jadjoubran commented 7 years ago

Hi @dinesh2017 Unfortunately that's a known problem with AngularJS (Angular 1) You can't really split your angular code into multiple bundles, unless you create multiple modules

However, if I were you, I would try to get rid of jQuery as a dependency if it's not used elsewhere