Discussion Forums  >  Uncategorized

Replies: 4    Views: 350

jerseydemic
Lost but trying
Profile
Posts: 20
Reg: Jul 11, 2011
East Orange, NJ
200
07/26/11 03:27 PM (14 years ago)

question about app loading

Will it load faster if I drag all my images to xcode. Or does it load faster grabbing from the internet?
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
07/26/11 03:50 PM (14 years ago)
it loads faster locally then from the internet, also, if they are not connected, they will load anyways (always better to do it that way!) David.
 
Parker @ buzztouch
buzztouch Evangelist
Profile
Posts: 1395
Reg: May 09, 2011
Pacific Grove, ...
24,500
like
07/26/11 06:31 PM (14 years ago)
@Jersey - Depends on when you are referring to. Do you mean the loading/install of the app on a phone, or the loading of content on a screen? Embedding content will make for a longer install of the app to the phone as everything has to be downloaded and installed. Also, if the app is over a certain size (10mb I think?) the end user will need to be on a wifi connection to download the app. A 3g connection won't work for apps over that size. However, like @David said, the content on the phone will load faster than files accessed online (that aren't cached) and the content will be available even without an internet connection after the app is installed. In the case where you are grabbing content (images) from the internet, the initial install of the app will be faster. Also, odds are greater that your app will be under the size restriction requiring a wifi connection. As screens load for the first time they will load slower than screens made with embedded content. However, after the screen has loaded for the first time, most content is stored in cache and will load just as fast as embedded content the next time that screen is opened. This will remain true and content will be available offline so long as the devices cache isn't cleared. But, keep in mind that content that hasn't been accessed and cached won't be available offline. From there the main difference is in how your app updates. If you want to make changes to embedded content you will have to submit an update to apple. With content accessed from the internet, all you have to do is change the file on your server / update your control panel.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
07/27/11 11:53 AM (14 years ago)
@Parker: Awesome post!
 
jerseydemic
Lost but trying
Profile
Posts: 20
Reg: Jul 11, 2011
East Orange, NJ
200
like
07/27/11 11:54 AM (14 years ago)
Thanks Parker, I like the idea of the force refresh on the initial opening.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.