Should I use Bootstrap from CDN or make a copy on my server?

前端 未结 5 489
终归单人心
终归单人心 2020-11-29 14:32

What\'s the best practice of using Twitter Bootstrap, refer to it from CDN or make a local copy on my server?

Since Bootstrap keeps evolving, I am afraid if I refer

5条回答
  •  再見小時候
    2020-11-29 14:58

    Almost all public CDNs are pretty reliable. However, if you are worried about that fraction of the time when a CDN might be down, you can load Bootstrap from one Bootstrap CDN, and fallback to an alternative CDN in case the first one is down.

    
      
        
        
        
      
      
        
    
        
        
        
    
        
        
        
      
    
    

    About your second concern: The links in this post are hard coded versions of bootstrap and jquery. So, even if the bootstrap and jquery libraries are constantly developed and get new features, your site will stay the same over time.

提交回复
热议问题