如何在ajax应用程序中找到未使用的CSS? [英] how can i find unused css in ajax app?

查看:74
本文介绍了如何在ajax应用程序中找到未使用的CSS?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在搜索,我找不到任何ff插件或javascript寻找未使用的CSS在ajax应用程序。



粉尘选择器
可以做网站抓取,但我正在寻找检查加载的内容...



我想要的东西,我可以按记录',然后加载点击,这将检查使用的选择器,并希望找到一个现有的,而不是 try 用jquery写自己的!



在Google Chrome浏览器中,您可以找到未使用的css规则。

菜单选择视图 - >开发者 - >开发工具



选择工具栏中的审核选项卡。



检查网页性能,然后选择运行审核现状。



您将有一个未使用的CSS规则列表。



希望有帮助。


I've been searching and i can't find any ff addons or javascript for finding unused css in ajax apps.

dust-me selectors can do a site-crawl, but i'm looking for something that examines loaded-in content...

I'd like something where i can press 'record' and then make a load of clicks which will check off the used selectors, and hoping to find an existing one rather than try to write my own with jquery!

解决方案

In Google Chrome, open up the page you want find the unused css rules in.

On the menu select View -> Developer -> Developer Tools

Select the Audits tab in the toolbar.

Make sure the Web Page Performance is checked, then Run for Audit Present State.

You'll have a list of unused CSS rules.

Hope that helps.

这篇关于如何在ajax应用程序中找到未使用的CSS?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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