Research ways to make Require.js load individual Backbone views without preloading all other views and their dependencies
Updated by Lauren Walker over 6 years ago
- Status changed from New to Resolved
- Assignee set to Lauren Walker
- Target version set to 1.11.2
All the other views are being loaded because the router lists all the major views as dependencies. I changed the router so that the views are only loaded via RequireJS once the user navigates to that view. This cut off about 300ms of "Loading" time. The initial "Loading" page is still displayed for 900-1000ms, while all the Require JS dependencies are loaded - JS libraries, AppView, NavbarView, FooterView, CSS, etc. This still isn't great. I'll create another ticket for improving performance since this particular issue is fixed.