Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialvicente lee
6,271 PointsAnimations and Activities
So, I have some activities that do lots of work (not network calls) and was wondering and I'm guessing here, adding animations and transitions will make it even worse for these activities. Is there a way to lighten the work? I'm thinking of using threads, but I've only seen them be used when making network calls, so not sure how to implement multi-threading to handle animations and other work intensive stuff. Any ideas?
kunalshitut
5,872 Pointskunalshitut
5,872 PointsThere is a very nice treehouse course on using threads and background services. I personally think that animation should be triggered after you have done your performance intensive code and have data. For eg., in an app which fetches data from the network. first get your data while showing your loader and once you have the data then show your animations. This way you wont have to interrupt your animations midway and ruin user experience.