4 ms·
1. Perceived render speed. You'll spend a lot of time tweaking your views (nested ones in particular) to load and render as fast as good old HTML rendered on th
by bikamonki 11y ago
1. Perceived render speed. You'll spend a lot of time tweaking your views (nested ones in particular) to load and render as fast as good old HTML rendered on the server.
2. You already mentioned: SEO. But if this app of yours is behind a login that is not a problem.
- rajangdavis 11y agoRight now the render speed is good, but could be better. One strategy that seems to work for this project has been to load in large, JSON objects using web workers while the first page is loading. This will allow the page to load and not disrupt the view rendering. From there, I can use the large JSON objects to build the nested routes. I will use one view and link to it but add parameters to filter out the data. Ng-if has been making the rendering way way way faster going this route. On a slow connection, two things that slows down the entire app is AJAX calls and rendering images. That is why I have tried to pull in the large JSON objects upfront so that the initial load might take an extra half second, but the rest of the app navigation is speedy. SEO is my biggest concern, but for now, I am thinking I can use older links and do a 301 redirect to the needed resource. The only issue that I foresee is that I cannot do a server-side render; I was thinking of just routing bots to a non-ajax site so we can still get good SEO but it's while before I will get to this part.