Protocol Identification

3 posts, 0 answers
  1. Adam
    Adam avatar
    2 posts
    Member since:
    Oct 2012

    Posted 29 Oct 2012 Link to this post

    A known way to implement a CDN script is as follows:
    <script src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.1.1/js/bootstrap.min.js"></script>
    During the simulator, runs great, however, an http: or https:// must be applied to applications prior to running or in an update to the application.
    <script src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.1.1/js/bootstrap.min.js"></script>
  2. Stefan Dobrev
    Admin
    Stefan Dobrev avatar
    790 posts

    Posted 30 Oct 2012 Link to this post

    Hi Adam,

    Schema-less URLs run great on modern desktop browsers, but that's not the case for mobile device browsers and Cordova. Having in mind that your mobile app should support offline scenarios we are advertising that you should put all your scripts locally and not rely on web resources. Having the scripts locally will even improve the performance, because the app will be able to load them immediately without hitting the network.

    Hope this helps,
    Stefan Dobrev
    the Icenium team

    Share feedback and vote for features on our Feedback Portal.
    Want some Kendo UI online training - head over to Pluralsight.
  3. Adam
    Adam avatar
    2 posts
    Member since:
    Oct 2012

    Posted 30 Oct 2012 Link to this post

    Stefan,
    Thanks for the reply. I will load my scripts locally for the performance increase.
Back to Top