Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Chrome DevTools tips and tricks
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Damian Nicholson
July 06, 2017
Programming
190
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Chrome DevTools tips and tricks
Damian Nicholson
July 06, 2017
More Decks by Damian Nicholson
See All by Damian Nicholson
Designing form validation the right way
damian
0
330
Making Sure Your Forms Don't Suck
damian
0
220
Writing testable, scalable, maintainable rock-solid JavaScript
damian
5
1.6k
Ten Things You Should Know About Jasmine
damian
2
1.1k
Other Decks in Programming
See All in Programming
わからない話を追いかけたら、プログラミング言語を作る側にいた
ydah
3
400
freee が目指す データ マネジメント戦略 AI-Ready 時代を支える 攻めのガバナンスとは
freee
PRO
0
120
AWS CDK を「作」ってみた 〜フルスクラッチで見えた CDK の裏側〜 / aws-cdk-from-scratch
gotok365
3
2.7k
PHP に部分適用が来るぞ!……ところで何それ?おいしいの? #phpcon / phpcon-2026
shogogg
0
500
仕様書を書く前にハーネスを作る - Agent Native開発は「探索を速く、判定を固く」
gotalab555
4
1.5k
テーブルをDELETEした
yuzneri
0
130
jsmini JavaScript Engine を作ってみた話
yosuke_furukawa
PRO
0
290
Laravel Boostに学ぶ、AIにPHPを書かせる技術 〜OSSの実装から蒸留するエージェント制御の王道〜
kentaroutakeda
3
630
Lean は証明の正しさを確認するためだけのツールって思ってませんか?
inoueasei
1
130
今さら聞けない .NET CLI
htkym
0
170
仕様駆動開発へのトライを機に チームに適合する手法を模索し続けている話
freee
PRO
0
330
【SRE NEXT 2026 Lunch Session】一人目専任SREの立ち上げを加速する ― AIと進めたオンボーディングで2分を0.04秒にした話
pkshadeck
PRO
0
3.4k
Featured
See All Featured
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
Typedesign – Prime Four
hannesfritz
42
3.1k
From π to Pie charts
rasagy
0
240
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.8k
How to build a perfect <img>
jonoalderson
1
5.8k
Testing 201, or: Great Expectations
jmmastey
46
8.2k
GitHub's CSS Performance
jonrohan
1033
470k
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
Evolving SEO for Evolving Search Engines
ryanjones
0
250
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
270
A better future with KSS
kneath
240
18k
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
280
Transcript
Chrome DevTools @damian
right click + inspect = show DevTools command + option
+ i = toggle DevTools command + option + j = toggle DevTools with Console focussed command + shift + c = toggle DevTools in Inspect Element mode escape = toggle console Opening DevTools
Reload Click and hold refresh icon
Console convenice methods $(‘selector’) = document.querySelector('selector'); $$(‘selector’) = document.querySelectorAll('selector');
Console magic variables $0 - 4 $_ = reference to
last expression
Console copy(variable) = copy to clipboard inspect(element) = open element
in Elements panel
console.log(as, many, args, can, go, here, as, you, like); console.log('%cChrome
dev tools', 'background: red;'); console.log('%cChrome dev tools', 'background: red; font-size: 50px;'); console.log
console.log(‘Today is %s %ith’, ‘July’, 6); Format specifiers Specifier Output
%s String %i or %d Integer %f Float %o Expandable DOM element %O Expandable JavaScript object %c Applies CSS rules
console.assert(expression, “A failed assertion message”); console.dir(element) === console.log('%o', element); console
methods
console.count(label); console.count(string)
function Person(firstName, lastName, age) { this.firstName = firstName; this.lastName =
lastName; this.age = age; } var family = {}; family.mother = new Person("Susan", "Doyle", 32); family.father = new Person("John", "Doyle", 33); family.daughter = new Person("Lily", "Doyle", 5); family.son = new Person("Mike", "Doyle", 8); console.table(family, ['firstName']); console API reference console.table(array | object)
shift + click to toggle between hex, rgb and hsl
shift + click style rule to see CSS in Source panel shift + up to increment a unit by 10 alt + up to increment a unit by 0.1 CSS tips - Styles panel
command + shift + m = toggle device mode Mobile
device testing
blue = maximum width green = range beige = minimum
width Media queries
Landed in Chrome 59!!! Full page screenshots
Network throttling CPU throttling Mobile device testing - Performance panel
method:GET status-code: 200 -method:OPTIONS -.png block network request(Chrome 59) Network
panel
The end