If your site gets a lot of traffic and the assets are mission critical, it’s a tossup.If you’re using a top tier CDN such as Google or Microsoft CDNs, you’ll be fine. It will improve performance and add reliability, in the case of If your site gets relatively low traffic (such as a brochure advertising your service business, a vanity site, or a specialty niche) and uses an inexpensive host a CDN is probably all win.The JQuery CDN avoids this neatly by using jquery-latest.js and that’s pretty cool, but it could also break tests if the behavior of a jquery feature in a new version was not It’s easy to forget to upgrade a library if versions change.You can’t edit the CSS or Javascript on the CDN (big security risk, and of course it would change every one else’s copy).It doesn’t work offline, so you can’t develop without a net connection.If you use something like jquery_latest (shown below) to obtain the most recent version, it’s possible that new, incompatible code in the library may break your existing code.If the CDN performance is bad, it reflects badly on your website.If the CDN goes out of business, you have to re-host on your own website.If the CDN makes silent changes to the hosted file, or turns out to be unreliable, tracking down the problem may be more difficult It can be a disaster for automated testing.Speed, part 3: There’s a good chance your user’s ISP has already cached files from popular CDNs such as Google.Good for free web hosting sites like Weebly that don’t let you create script or asset directories.Someone else maintains these files for you and often can automatically upgrade to the latest version.Great for trying experiments quickly because you don’t have to download anything or create separate asset directories.Since the CDN is on another site it’s not included in that limit. Speed, part 2: Browsers can download a certain number of assets per web site concurrently.Speed, part 1: Sites like Google usually have better servers than you do. There are advantages and disadvantages of CDN: If you are working on a website that is expected to work on internet as well, then you should try CDN ( ) If you are working on a website that is expected to work in intranet only then, use local server directory.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |