google-chrome-devtools

Chrome Devs tools - where's size and content?

做~自己de王妃 提交于 2019-12-05 12:04:55
问题 According to Chrome Dev Tools - "Size" vs "Content", I should be able to see Size (bytes on the wire) and Content (uncompressed size). I remember seeing this at one time. But now (Chrome 38), I only see one measurement, and I'm not sure which one it is. Can I see the compressed and uncompressed sizes with the Chrome Dev Tools? 回答1: You should press "Use large resource rows." to see more data. 回答2: If you are using latest version of chrome (like 78+) you can "Use large resource rows." under

How to measure how many TCP connections were made in a page

五迷三道 提交于 2019-12-05 12:03:30
With chrome dev tool, I can see the number of requests in a page, but it seems that there is no way to measure number of connections. Is it possible in chrome dev tool? if not, what tools can I use instead? You can enable the Connection ID header in the Network panel, which is a unique identifier for a particular connection. You can sort the column to see how many requests there were for a particular connection instance, but there's no built in way to see how many or filter the results. However, this data can be exported into a JSON formatted file, known as the HAR (HTTP Archive). You can do

What is the source of the double-dollar sign selector query function in Chrome/Firefox?

假装没事ソ 提交于 2019-12-05 11:34:20
Check this jsfiddle , and have a look at the console. $$ is not defined. Now, open a completely new window, and enter $$ into a console. It defines a function for getting a (jquery-like) array of all the dom elements which match the selector: > $$ bound: function () { return document.querySelectorAll.apply(document, arguments) } Is this being added by Dev tools? It is also present when using Firebug in Firefox. Is it used internally by the tools themselves? ziesemer Well, Firebug Lite defines this as: this.$$=function(selector,doc){if(doc||!FBL.Firebug.chrome){return FBL.Firebug.Selector

How to save the results analysed by the Chrome's Coverage tool?

三世轮回 提交于 2019-12-05 11:02:44
问题 At a first glance it looks like very useful tool, however I cannot find any operation like Save or similar option. Does anyone know whether it is possible to save the results analysed by the Chrome's Coverage tool? Thanks 回答1: As mentioned int the comments above, and in the marked duplicate, a feature request has been filed for this. In the meanwhile, as stated in the comments section of this page, one can use CoverageRange , FunctionCoverage or ScriptCoverage to gather the same data via

Chrome annoyingly opens a corresponding line in main.bundle.ts every time I add a breakpoint in a .ts file

爱⌒轻易说出口 提交于 2019-12-05 10:47:11
I'm developing an Angular (v4.3.5) SPA, serving it with Angular CLI's ng serve command and debugging it through Chrome Developer Tools. Last week something strange started to happen and I can't seem to do anything to change it to the way it was before: in Chrome Dev Tools, when I click on the line number to add a breakpoint in my .ts files, Chrome Dev Tools also open the corresponding line in main.bundle.ts , so now every single time I add a breakpoint I have to close main.bundle.ts or click back on the title of .ts file. It's very annoying. Is there a new change in default settings or

How to view css stylesheet injected by a Google Chrome extension using dev tools?

半世苍凉 提交于 2019-12-05 10:42:46
问题 I'm injecting a css file from my chrome extension using the manifest.json (full source): "content_scripts": [ { "matches": [ "http://*/*" ], "css":["src/inject/gfi_extension.css"], "js": [/*...*/] } ] In Chrome Dev Tools, if I inspect an element which is affected by the injected css, the rules are visible, but in the upper right where the source filename would normally be, it just says "injected stylesheet." I'd like to view ALL of the rules being injected, even those that affect elements

Chrome Developer Tools: inspect prettified CSS

那年仲夏 提交于 2019-12-05 10:38:45
If you want to look at the CSS of other people's websites (to steal learn from them), Firebug lets you inspect the prettified CSS: But in Chrome 16, you only get the minified CSS as it was served out: Is there a way to get Chrome to prettify the CSS? In the newer versions there is a "format" button that prettifies the source: (only just realised myself :P ) The Developer's console shows the file as served. If you want a human-readable version, copy-paste the code to http://www.codebeautifier.com/ . If you use the Elements tab, the applied CSS properties are also shown per element. I recommend

Content Security Policy: cannot load Mixpanel in Chrome extension

痞子三分冷 提交于 2019-12-05 10:14:57
I've been struggling with this for the past day and there are little-to-no resources available online for integrating Chrome Extensions and Mixpanel. I'd like for this thread to by the one that people refer to when dealing with integrating Mixpanel into a Chrome extension. The goal of my Mixpanel integration is to be able to track events both with my content script content.js as well as my popup.js (so basically across my whole extension) I have a popup.html file that calls <script src="mixpanel.js"></script> right before the </head> tag. In my mixpanel.js file is: (function(e,b){if(!b.__SV)

chrome.devtools.network.getHAR does not work

谁说我不能喝 提交于 2019-12-05 10:12:57
问题 I am trying create a simple chrome extension to get number of http requests visible in network tab of chrome developer toolbar. I added manifest.json: { "name": "Entries", "version": "1.0", "description": "Give me entries", "devtools_page": "devtools.html", "manifest_version": 2 } devtools.html : <html> <body> <script src="devtools.js"></script> </body> </html> devtools.js: chrome.devtools.network.getHAR(function(result) { var entries = result.entries; Console.warn("entries : " + entries

What does “document count” in the devtools refer to?

怎甘沉沦 提交于 2019-12-05 09:42:19
You can see the word "Document Count" in Chrome DevTools. What is it? For example, recording the below website, the number of documents is 8 or 9. https://developers.google.com/chrome-developer-tools/docs/javascript-memory-profiling?hl=it#dominators This is a question of a tool but I think this could be a question of HTML, so I'm asking here. The "Document Count" maintains a count of the number of documents used by your application over time, that are held in memory (not garbage collected). Iframes on your page along with their documents are also counted here. This counter may contribute in