How to load local copy of bootstrap css when the cdn server is down?

前端 未结 4 861
渐次进展
渐次进展 2020-12-30 06:04

As of now I\'m using like this for javascript


<         


        
4条回答
  •  时光说笑
    2020-12-30 07:01

    Would performing a jquery.Get() on the file work? Depending on the result, you would know whether it's available or not. And seeing as it occurs on the clientside, local caching would make this a non-issue for the extra bandwidth.

提交回复
热议问题