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 trial

iOS

Optimise what's downloaded through NSURLConnection.

Hi

I am building an app that accesses and downloads a website, [sadly there's no convenient API or mobile site, I download the standard webpage] however there are images on the page and javascript styling that formats the information. The website is taking between 3-5 seconds to download of wifi which means it's taking up to 30 seconds when I've tested it on my cellular connection on the iPhone itself.

All i want is the raw data to manipulate. Is there a way to request just that data and not download the images / javascript etc, or am I not downloading in the first instance and it's just going to take that long to download?

Thanks