阻止 Tumblr 向主题添加 JS 和 CSS 文件 [英] Stop Tumblr from adding JS and CSS files to theme

查看:32
本文介绍了阻止 Tumblr 向主题添加 JS 和 CSS 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Tumblr 只是用大量 JS 和 CSS 文件淹没了博客.我不知道这些文件是必需的还是有用的.这是它们的列表

Tumblr is just flooding the blogs with loads of JS and CSS files. I don't know if these files are required or just useful. Here's a list of them

JS:- tumblelog.js &pre_tumblelog.js -> 看起来这是 Tumblr JS API,但我们需要它吗?- cedexis.radar.js -> 不知道这是做什么的.- Rapid-3.18.1.js

The JS: - tumblelog.js & pre_tumblelog.js -> looks like this is Tumblr JS API, but do we need it? - cedexis.radar.js -> no idea what this does. - rapid-3.18.1.js

CSS:

  • fonts/gibson/stylesheet.css

还有一些图片也被添加到页面中.

And some images are also added to the page.

我搜索了一些,但没有办法阻止 tumblr 这样做.如果我们不需要这些文件,有什么办法可以阻止 Tumblr 这样做?如果我们需要这些脚本,您能否详细说明我们为什么需要这些脚本?

I searched a bit, but there is no way of stopping tumblr from doing this. Is there any way we can stop Tumblr from doing so, if we don't need these files? If we need the scripts, can you please elaborate why we need these?

推荐答案

不,很遗憾,您无法阻止 Tumblr 添加脚本/样式表,因为它们是在服务器端添加的.

No, sadly you can't do anything to stop Tumblr adding scripts / style sheets as they are added serverside.

作为参考,添加了与主题字体选项相关的 fonts/gibson/stylesheet.css:https://www.tumblr.com/docs/en/custom_themes#theme-options

For reference, fonts/gibson/stylesheet.css is added in relation to the theme fonts option: https://www.tumblr.com/docs/en/custom_themes#theme-options

这篇关于阻止 Tumblr 向主题添加 JS 和 CSS 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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