javascript - Local script/css vs. CDN on mobile PhoneGap app -
i understand benefits of including scripts and/or css through cdn on standard web page. however, seems in case of phonegap app in javascripts , css can downloaded app, cdn decrease performance.
so question is: there benefits using cdn mobile phonegap app?
you right. common mistake new phonegap result in slow application start-up. depend on scenario, may disbenefit use cdn mobile phonegap app. due webview/browser behavior, phonegap picky on having it's resources locally. if want application load fast, initial resources should local.
if web developer, you've come across suggestion of loading js file @ end of body tag rather in head tag. webview/browser thread availability same reason why it's better have file local in phonegap. remember have wait body onload before phonegap deviceready event.
now, on other hand, if load blogs/articles on subsequent single page application view ajax, benefit cdn hosting of blog/article static contents.
Comments
Post a Comment