Recently I created an admin panel using vue and laravel.
All things working correctly but one problem is that my compiled script file is almost 7mb file (i.e app.js which is located in public folder) because of this compiled script browser take to long loading time to load initial (landing page) on browser i.e it does not render page until 7mb script get downloaded in browser which is almost 1 min.
Is it possible to load initially one component at start after that according to user click load other component.
In more detail: suppose my app.js file has 1K lines of code and at start if few lines of code get downloaded
then it renders page i.e it should not wait to download complete 7mb script after that it render page.
Is there anyway to reduce this loading time . I did lots of google but haven't find any solution
