Best way to use Google's hosted jQuery, but fall back to my hosted library on Google fail

前端 未结 23 1401
太阳男子
太阳男子 2020-11-21 07:19

What would be a good way to attempt to load the hosted jQuery at Google (or other Google hosted libs), but load my copy of jQuery if the Google attempt fails?

I\'m n

23条回答
  •  鱼传尺愫
    2020-11-21 07:44

    You might want to use your local file as a last resort.

    Seems as of now jQuery's own CDN does not support https. If it did you then might want to load from there first.

    So here's the sequence: Google CDN => Microsoft CDN => Your local copy.

    
     
    
     
    
     
    

提交回复
热议问题