In routes/erm.js we should lazy load the components https://vuejs.org/guide/components/async.html
I didn't manage to provide a good solution for this problem. Can I get some help on this one please? I think it must be fixed for 24.05.
Created attachment 165357 [details] [review] Bug 33024: (DO NOT PUSH): Test example Apply patch, run yarn js:build The AgreementsShow and AgreementsFormAdd components are bundled separately, AgreementsList isn't but maybe that is an issue with it being the parent route?
Looking at this page it says not to use async components for routes: https://router.vuejs.org/guide/advanced/lazy-loading.html The test patch uses the method above - if you run yarn build you can see two of the Agreements routes are bundled separately. AgreementsList isn't but I think this might be because it is the parent route for the agreement components? Just an example for discussion for now, this may not be what you were looking for
I actually commented on the wrong bug, but thanks Matt for your patch! I meant... a bug that I hadn't opened yet! But it exists now, see bug 36674!
Confused.. what's the current state of this one then?
Nice one, Matt. I wonder if this should be an umbrella bug and individual reports could look at using the lazy loading for a small group of components? Or are we still looking into why AgreementsList isn't bundled separately?