Stop Tumblr from adding JS and CSS files to theme

限于喜欢 提交于 2019-12-31 03:45:09

问题


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

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

The CSS:

  • fonts/gibson/stylesheet.css

And some images are also added to the page.

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?


回答1:


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

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




回答2:


You might be able to break some of the scripts (for example by adding window.addEventListener = 1), but it's probably not be worth the hassle.

You can remove any extra CSS or element via javascript but any downloads initiated by them can't be prevented.



来源:https://stackoverflow.com/questions/30010406/stop-tumblr-from-adding-js-and-css-files-to-theme

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!