What is the difference between // and .// in XPath?

In XPath, // and .// are both syntactic abbreviations: // is short for /descendant-or-self::node()/ .// is short for self::node()/descendant-or-self::node()/ The descendant-or-self axis contains the context node and all descendents of the context node. So the difference between // and .// reduces to a difference in context nodes. For //, the context node is the root … Read more

LCP time between LightHouse and Performance – Google Chrome

Why is Lighthouse showing much longer load times? The answer is a combination of simulated network throttling and CPU throttling. Simulated Network Throttling When you run an audit it applies 150ms latency to each request and also limits download speed to 1.6 Megabits (200 kilobytes) per second and upload to 750 megabits (94 kilobytes) per … Read more

Chrome 84 Inspect element, find results not highlighted in yellow like before

Yes, In recent updates of Chrome 84, Find feature is buggy. 3 issues have been reported and those are in unconfirmed status as of now (while writing this answer). You can follow them on below links for more details – An element in the elements tab is not highlighted if it is only one in … Read more

Access function location programmatically

The answer, for now, is no. The [[FunctionLocation]] property you see in Inspector is added in V8Debugger::internalProperties() in the debugger’s C++ code, which uses another C++ function V8Debugger::functionLocation() to gather information about the function. functionLocation() then uses a number of V8-specific C++ APIs such as v8::Function::GetScriptLineNumber() and GetScriptColumnNumber() to find out the exact information. All … Read more

How to debug angular app using angular-cli webpack?

How to debug with angular/cli The new angular/cli version uses webpack which does not compile the ts files to an local directory like dist before (till beta 1.0.0-beta.10). Now it uses some memory like approach. But you can find the ts Files in the Chrome Developer Tools in the “Sources” tab. (new) Solution for angular/cli@1.0.0-beta.26 … Read more

Custom.css has stopped working in 32.0.1700.76 m Google Chrome update

Support for Custom.css has been removed from Chrome in version 32. This answer provides two methods for easily activating style sheets in the developer tools. The second method is recommended, but only works for Chrome 33+, the first method also works for Chrome 32. Both methods are Chrome extensions, to use the examples below, follow … Read more

What is shadow root

This is a special indicator that a Shadow DOM exists. These have existed for years, but developers have never been given APIs into it until recently. Chrome has had this functionality for a while, other browsers are still catching up. It can be toggled in the DevTools Settings under the “Elements” section. Uncheck the “Show … Read more

Understanding Chrome network log “Stalled” state

Google gives a breakdown of these fields in the Evaluating network performance section of their DevTools documentation. Excerpt from Resource network timing: Stalled/Blocking Time the request spent waiting before it could be sent. This time is inclusive of any time spent in proxy negotiation. Additionally, this time will include when the browser is waiting for … Read more