开发者

jquery-tools fallback if CDN fails

开发者 https://www.devze.com 2023-01-31 23:34 出处:网络
I\'m using the for falling back and serving jquery locally if Googles CDN fails, following this thread.

I'm using the for falling back and serving jquery locally if Googles CDN fails, following this thread.

Does anyone have advice for how to fall back on local jquerytools if the CDN version fails? There's a similar technique for Flowplayer discussed in Flowplayer forum, but I have开发者_如何学编程n't figured out how to do it for jquerytools.

Thanks for any tips.


You can use flashembed object from jQuery Tools, like this:

<script src="http://cdn.jquerytools.org/1.2.7/all/jquery.tools.min.js"></script>
  <script>window.flashembed || document.write('<script src="js/jquery.tools.min.js"><\/script>')</script>
0

精彩评论

暂无评论...
验证码 换一张
取 消