从jquery.com热链接jQuery是否不好? [英] Is it bad to hotlink jQuery from jquery.com?

查看:90
本文介绍了从jquery.com热链接jQuery是否不好?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这可能会得到相当讨厌的响应,但是我的服务器目前不是最快的,如果我从jQuery主页进行热链接以便它们处理内容,则我的网站加载会快得多.这不好吗? jQuery最终会从页面中删除这些js文件吗?

This will probably get a pretty nasty response, but my server isn't the fastest at the moment, and my site loads much faster if I hotlink from the jQuery homepage so they server the content. Is this bad to do? Does jQuery eventually remove those js files from their page?

推荐答案

更好地通过 Google API库.

非常大的优势:

  • Google快速且高度可用
  • 单独的主机,允许客户端与页面和图像同时加载JQuery(浏览器每个主机仅支持有限数量的连接)
  • 由于许多网站都在使用它,因此速度甚至可能还要更快,因此,无论如何,此Google版本都可能位于访问者的缓存中.
  • Google is fast and highly available
  • Separate hosts, allows the client to load JQuery simultaneously with your pages and images (browsers support only a limited number of connections per host)
  • Probably even faster still, because many websites use it, so this Google version is probably in your visitor's cache anyway.

这篇关于从jquery.com热链接jQuery是否不好?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆