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

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

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


<         


        
4条回答
  •  既然无缘
    2020-12-30 06:39

    My solution for this was to have an empty div using the bootstrap hidden class style at the top of the body:

    
    

    And then to test it later with Javascript and append it to the head if the div is visible:

        
    

提交回复
热议问题