DisCoverage

开发者工具插件大小: 237KiB版本: v 1.0.1更新时间: 2021-12-21
大小:237KiB版本:v 1.0.1更新时间:2021-12-21

This extension helps to analize css and javascript coverage reports for multiple resource files and multiple pages at once.

DisCoverage 的使用方法详解,最全面的教程


DisCoverage 描述:

用户数:1000

分类:开发者工具插件

扩展大小:237 KiB

最后更新时间:2021-12-21

版本:v 1.0.1


DisCoverage 插件简介:

这是来自Chrome商店的 DisCoverage 浏览器插件,您可以在当前页面下载它的最新版本安装文件,并安装在Chrome、Edge等浏览器上。


DisCoverage插件下载方法/流程:

点击下载按钮,关注“扩展迷Extfans”公众号并获取验证码,在网页弹窗中输入验证码,即可下载最新安装文件。


DisCoverage插件安装教程/方法:

(1)将扩展迷上下载的安装包文件(.zip)解压为文件夹,其中类型为“crx”的文件就是接下来需要用到的安装文件

(2) 从设置->更多工具->扩展程序 打开扩展程序页面,或者地址栏输入 Chrome://extensions/ 按下回车打开扩展程序页面

(3) 打开扩展程序页面的“开发者模式”

(4) 将crx文件拖拽到扩展程序页面,

完成安装如有其它安装问题,

请扫描网站底部二维码与客服联系如有疑问请参考:

https://www.extfans.com/installation/
**The story** One of important issues with page loading speed optimization is to reduce size of css and javascript resources. Usually optimization tools (like lighthouse) gives us a clue to "cut" unused css rules or javascript functions. So how to detect what is really unused? Lately i have discovered chrome coverage tool that I find very useful (https://developers.google.com/web/updates/2017/04/devtools-release-notes#coverage). The main limitation of this awesome tools is that it works only in the context of a single page. Now i hear your say: Right, but my website consists of multiple pages and all of them share same javascript and css resources... Well, that was my problem too. Till i have decided to write and extension that will be able to analyze coverage data for multiple websites. **Usage** Collecting coverage reports: 1. Install DisCoverage extension. 2. Ensure "Allow access to file URLs" on extension management screen is ENABLED (https://user-images.githubusercontent.com/3299098/46309757-2f946c80-c572-11e8-91a9-e417a8ab8981.png) 3. Open developer tools tab (F12). Enable 'coverage' drawler (see instructions at: https://developers.google.com/web/updates/2017/04/devtools-release-notes#coverage). 4. Load first page you would like to analyze. 5. Inside coverage drawler enable 'Instrument coverage' (click red diode). You should see coverage data inside drawler. 6. On your hard drive prepare folder where you will store coverage reports (.json files). 7. Inside coverage drawler click 'Export...' and save coverage file to prepared folder. 8. Load next page you would like to analize (typical scenariu would be to click links inside already loaded page). 9. Wait for coverage data to be collected and displayed. . 10. Export another report to folder. 11. Repeat steps 7 to 9 till you scan all the pages you would like to analyze. Loading reports inside the extension: 1. Click extension icon (https://i.imgur.com/a8UtXDx.png). 2. Enter path to folder where you have saved coverage reports (.json f iles). Path should be specified as uri: file:///C:/My/Folder/Path (https://i.imgur.com/tiIh9jE.png) 3. Click ‘Read coverage reports’ (https://i.imgur.com/37UJYEU.png). 4. It may take a while but finally you should see list of loaded files (.css, .js and html).( (https://i.imgur.com/kaMFNBy.png) Previewing coverage for particular files: 1. Click one of the urls for resource (css, js) you would like to analyze. (https://i.imgur.com/M6i6WTQ.png) 2. Extension will load code preview with lines marked as covered. Note: analyzing minifed files will not be usefull, because most text is inside single line. (https://i.imgur.com/nZy3OK6.png) 3. Hover line number to display popup with information which page cover this line. (https://i.imgur.com/Mlm9P71.png) 4. Click 'Show only covered lines' to reduce code only to covered lines (you can copy this code as minimal required - this is quite save but only for css). (https://i.imgur.com/jRZS4DH.png -> https://i.imgur.com/gCOn3j9.png) **Chrome coverage tools suggestions** When analyzing coverage for page ensure: 1. You have resized the screen so that media queries would be applied (otherwise css rules for resolutions different that current will not be detected) 2. You have penetrated parts of the website that are dynamically generated (html loaded form server or generated 'on the fly'). **About author** Hello, I’m Paweł. I live in Poland and work with great people in xtech.pl company. We are running multiple industry portals (our flag ship is https://www.automatyka.pl). I love programming. ** Limited support ** I give no guarantee for this extension but if you find any issues please post them on trello board: https://trello.com/b/Zh3R07pQ/discoverage-extension **Version info:** 1.0 – Designed for css file only. Javascript analysis may not useful at the moment.

相关应用

브라우저에서 라온시큐어의 PC보안 기능을 사용하기 위한 확장 프로그램입니다.
Capture a screenshot of your current page in entirety and reliably—without requesting any extra permissions!
Расширение позволяет использовать КриптоПро ЭЦП Browser plug-in в браузере. Для работы требует установленного ЭЦП Browser plug-in.
Adds React debugging tools to the Chrome Developer Tools. Created from revision 336ac8ceb on 7/13/2022.
Advanced Eyedropper, Color Picker, Gradient Generator and other colorful goodies
POSTMAN CHROME IS DEPRECATED DOWNLOAD THE UPDATED POSTMAN NATIVE APPS Postman Chrome is deprecated and is missing essential, new…
EditThisCookie是一个cookie管理器。您可以添加,删除,编辑,搜索,锁定和屏蔽cookies!
Tag Assistant helps to troubleshoot installation of various Google tags including Google Analytics, Google Tag Manager and more.
The web developers helper program to create and test custom HTTP requests.
back top top
back top top