pyspider打开webui速度慢卡在CFcdn的解决办法。
如题。做了一点体力工作,给大家分享粗来。把CFcdn的静态文件替换到了bootcss cdn。
替换文件路径在pyspider文件目录下的webui里。
把所有cloudflare网页的静态引用注释掉,然后用下面的。
index页面:
<link href="https://cdn.bootcss.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet">
<link href="https://cdn.bootcss.com/x-editable/1.5.1/bootstrap-editable/css/bootstrap-editable.css" rel="stylesheet">
<link href="https://cdn.bootcss.com/sortable/0.6.0/css/sortable-theme-bootstrap.min.css" rel="stylesheet">
<script src="https://cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
<script src="https://cdn.bootcss.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
<script src="https://cdn.bootcss.com/x-editable/1.5.1/bootstrap3-editable/js/bootstrap-editable.min.js"></script>
<script src="https://cdn.bootcss.com/sortable/0.6.0/js/sortable.min.js"></script>
<script src="https://cdn.bootcss.com/vue/1.0.28/vue.min.js"></script>
debug页:
<link href="https://cdn.bootcss.com/codemirror/5.20.2/codemirror.min.css" rel="stylesheet">
<link href="https://cdn.bootcss.com/font-awesome/4.0.3/css/font-awesome.min.css" rel="stylesheet">
<link href="https://cdn.bootcss.com/codemirror/5.20.2/addon/dialog/dialog.min.css" rel="stylesheet">
<link href="https://cdn.bootcss.com/codemirror/5.20.2/addon/lint/lint.min.css" rel="stylesheet">
<script src="https://cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
<script src="https://cdn.bootcss.com/jsonlint/1.6.0/jsonlint.min.js"></script>
<script src="https://cdn.bootcss.com/codemirror/5.20.2/codemirror.min.js"></script>
<script src="https://cdn.bootcss.com/codemirror/5.20.2/mode/xml/xml.min.js"></script>
<script src="https://cdn.bootcss.com/codemirror/5.20.2/mode/css/css.min.js"></script>
<script src="https://cdn.bootcss.com/codemirror/5.20.2/mode/javascript/javascript.min.js"></script>
<script src="https://cdn.bootcss.com/codemirror/5.20.2/mode/htmlmixed/htmlmixed.min.js"></script>
<script src="https://cdn.bootcss.com/codemirror/5.20.2/mode/python/python.min.js"></script>
<script src="https://cdn.bootcss.com/codemirror/5.20.2/addon/search/search.min.js"></script>
<script src="https://cdn.bootcss.com/codemirror/5.20.2/addon/search/searchcursor.min.js"></script>
<script src="https://cdn.bootcss.com/codemirror/5.20.2/addon/dialog/dialog.min.js"></script>
<script src="https://cdn.bootcss.com/codemirror/5.20.2/addon/selection/active-line.min.js"></script>
<script src="https://cdn.bootcss.com/codemirror/5.20.2/addon/runmode/runmode.min.js"></script>
<script src="https://cdn.bootcss.com/codemirror/5.20.2/addon/lint/lint.min.js"></script>
<script src="https://cdn.bootcss.com/codemirror/5.20.2/addon/lint/json-lint.min.js"></script>
<script src="https://cdn.bootcss.com/codemirror/2.36.0/formatting.min.js"></script>
<script src="https://cdn.bootcss.com/URI.js/1.11.2/URI.min.js"></script>
tasks页:
<link href="https://cdn.bootcss.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet">
<script src="https://cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
<script src="https://cdn.bootcss.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
PS:注意,不要把本地的css js引用注释掉。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看评论 作者回答了常规做法。