Discussion Forums  >  Uncategorized

Replies: 2    Views: 295

wendymadeit
Apple Fan
Profile
Posts: 82
Reg: Jan 12, 2011
location unknow...
820
09/05/11 08:43 PM (14 years ago)

JQuery - to urs URL, or download code? Thoughts?

I've got a cute little JQuery thing happening on my app. It's working great in the simulator. Wondering if I should continue to just reference the URL in the head, or should I download & put into Xcode...?? I'm just thinking that it won't work offline.... + maybe that's not a bad thing.... hmmmm.... Your thoughts?
 
wendymadeit
Apple Fan
Profile
Posts: 82
Reg: Jan 12, 2011
location unknow...
820
like
09/05/11 08:44 PM (14 years ago)
note to self, check spelling of forum topic BEFORE posting, as I can't edit it!! Sorry about that - should read 'use' not 'urs'!!! :{
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
09/05/11 11:21 PM (14 years ago)
Spelling, we all suck these days, computers do it for us so no worries there. This is a good question and worth considering. I prefer to keep all the .JS in the document (head section) usually, just kind of feels better to know that each html doc is portable this way. For sure there are reasons this is a bad idea, like if you use giant libraries that take up tons of space in your documents. Lame in this case. I generally write the .js myself and keep it tidy, compact, small and very speciifc for the screen I'm working with so keeping it together makes sense. If you add the .js externally to the project (and get through the little gotcha described in the sample.js in your download) it will work. Personal preferences I guess, it all depends on how you like to work.
 

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.