Level 14
Depend how large is app.js, but take into account that is being cached by browser.
You can create also separated files, or check this solution for code splitting: https://sebastiandedeyne.com/code-splitting-with-laravel-mix/
1 like
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hey artisans
I would like to ask Laravel / Vue developers
How do you set your dependencies on your projects?
Do you keep them all inside bootstrap.js ( they get all loaded inside app.js) ?
or do you add them in a seperated scripts ( CDN) ?
because in some particular pages , I don't need to load a specific package so that it slows down everything..
Please or to participate in this conversation.