管理页面中的 W3C 总缓存缩小
我有一个问题。我使用插件 W3C Total Cache
并且效果非常好!
我注意到它仅适用于网站,但不适用于管理页面...
请问我该如何使用 W3 缩小管理页面?
谢谢 !
I have a question. I use the plugin W3C Total Cache
and it works great !
I noted that it works only on website but not on the admin page...
How can I do to minify Admin Page with W3 please ?
Thanks !
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
WP 界面文件中没有大量空白,所以我怀疑您是否会看到很大的改进。 CSS 和 JS 已经尽可能地缩小了。
然而,这在许多页面上是相当不可能的,例如任何实现 WP 编辑器的页面。正确显示编辑器需要行结尾,因此您会破坏功能。
如果您非常关心效率,您也许可以通过 .htaccess 文件进行 gzip 压缩,但这似乎完全没有必要。压缩内容需要时间,并且动态内容会不断变化,因此每次重新压缩它实际上可能会增加而不是减少页面加载时间。
The WP interface files don't have a ton of whitespace in them, so I doubt you'd see much improvement. The CSS and JS are minified as much as possible already.
However, this would be fairly impossible on many pages, such as any page implementing the WP editor. Line endings are required to display the editor correctly, therefore you'd be breaking functionality.
You may be able to do gzip compression through a .htaccess file if you're terribly concerned with efficiency, but it seems quite unnecessary. Compressing content takes time, and with dynamic content it's constantly changing, so recompressing it every time may actually increase page load time instead of decreasing it.