Join the Stack Overflow Community
Stack Overflow is a community of 6.5 million programmers, just like you, helping each other.
Join them; it only takes a minute:
Sign up

i got a question on an angularjs project i'm working to.

I got a 1.5 Component, which includes some subcomponents. One of these subcomponents is quite slow to load, due to the size of data coming from server. But the user normally sees it after the other ones, because it is displaied at the end of the page.

Say the structure is something like this

Main Content
fast sub component content
slow sub component content

What I would like is 1- load the basic component and the fast subcomponent immediately and let them show to the user 2- load the slow component after the other ones has already displayed, in a way that user doesn't have perception of slow loading time.

How can I do?

Can I define this lazy-load, even if the slow component is not loaded on request, but by default, just after the others have finished ?

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.