从Github网址加载JS和CSS以及常见图像文件的良好实践?

问题描述

假设我有一个遵循模板的网站

<html>
  <head>
  <title> Exploit Github </title>
  <link rel="stylesheet" href="https://github.com/samerepo/somethingfromgithubcss.css">
  <link rel="icon" href="https://github.com/samerepo/somethingfromgithubpng.png">
  </head>
  <body>
    <img src="https://github.com/samerepo/somethingfromgithubpng.png">
    .
    .
    .
  </body>
</html>
<script src="https://github.com/somethingfromgithubjs.js"></script>

现在让我们说所有这些文件的大小总计不超过2 Mega Bytes,它们都位于同一目录中,或者可能是来自GitHub的Images的完整餐具...

如果我每秒有大约100个请求的流量(假设没有缓存),这意味着GitHub必须传输2 X 100兆字节/(秒|几秒钟)。

我对GitHub的体系结构了解不多,但是GitHub的存储和网络体系结构是否旨在处理此类实践?在不影响繁忙流量期间可能需要的网络吞吐量吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...