Chrome devtools: Overall anatomy
Chrome devtools: Elements panel
Chrome devtools: Elements panel
Chrome devtools: Elements panel
Chrome devtools: Console panel
Note:
Chrome devtools: Overall anatomy: panels
1
2
3
4
Chrome devtools: Overall anatomy: panels
$(css_selector) | gives first match (!= JQuery) |
$$(css-selector) | gives all matches |
$x(xpath) | gives all matches |
$_ | last output |
$0 ... $4 | last five used elements |
copy(object) | copies object to clipboard |
dir(object) | directory style listing (good for Dom) |
inspect(object) | opens Element panel with object selected |
getEventListeners(object) | shows all event listeners on the object |
keys(object) | lists names of properties |
monitor(function) | logs on console when function is called |
monitorEvents(object, events) | logs Event object when event occurs on the object |
table(data) | Log object data with table formatting |
values(object) | array containing the values of all properties |
Ref: https://developers.google.com/web/tools/chrome-devtools/debug/command-line/command-line-reference?hl=en
Chrome devtools: Console panel
$0 gives the currently selected element in Elements panel
Thanks to https://hackernoon.com/twelve-fancy-chrome-devtools-tips-dc1e39d10d9d#.t3icnbhze
Chrome devtools: Console panel
$0 gives the first selected element. No Jquery
Chrome devtools: Console panel
Copy the object to the clipboard
copy($0)
Chrome devtools: Console panel
Shows the last result
$_
Chrome devtools: Console panel
console.log when the function is called
function foo() { }
monitor(foo)
Chrome devtools: Overall anatomy: panels
var names = {
0: { nick: "Ji", person: "Praveen" },
1: { nick: "Jeev", person: "J.P Robinson" } };
table(names);
monitorEvents(window, "resize");
function foo() { return "foo";}
monitor(foo);
getEventListeners(document);
document.body;
dir(document.body);
copy(names);
$('img');
$$('img');
$_
$0
$1
$2
$3
$4
i=$('img');
inspect(i);
Chrome devtools: Sources panel
Chrome devtools: Sources panel
Cmd/Ctrl P
Format it
Chrome devtools: Overall anatomy: panels
Chrome devtools
Chrome devtools: Network panel
Disable the cache
Show Overview
Use small request rows
Capture screenshots
Chrome devtools: Network panel
Add Domain column (right click here to add get the menu)
Chrome devtools: Network panel: example
overview
Chrome devtools: Network panel: example2
Chrome devtools: Network panel: with filmstrip
Chrome devtools: Network panel: with filmstrip
Detailed view
Timestamp
(around DomContentLoaded here)
Chrome devtools: Network panel
Chrome devtools: Network panel: Things to notice
DOMContentLoaded
DOMContentLoaded
Load
Load
Total requests
Statuses
Chrome devtools: Network panel: Things to notice
Zoomed in
The 'gap'
Sizes and Times
Chrome devtools: Network panel
Chrome devtools: Network panel
Chrome devtools: Network panel
Chrome devtools: Network panel
Stalled/Queued
Content download
TTFB
Gaps
Chrome devtools: Network panel
More green: Slow network or slow serverside
Chrome devtools: Network panel
More blue: Heavy resource
Chrome devtools: Network panel: Tips
Chrome devtools: Network panel: Some Limitations
Limitations
Chrome devtools: Network panel
easier said than done :)
@h6165
Abhishek Yadav
ரூபீ ப்ரோக்ராமர்
Co-organizer: Chennai.rb