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
DevTools 🪄 #2024
Search
Yoriiis
December 10, 2024
Programming
0
0
DevTools 🪄 #2024
Yoriiis
December 10, 2024
Tweet
Share
More Decks by Yoriiis
See All by Yoriiis
Performances
yoriiis
0
0
Other Decks in Programming
See All in Programming
スマホから Youtube Shortsを見られないようにする
lemolatoon
27
34k
Pythonに漸進的に型をつける
nealle
1
140
バッチ処理を「状態の記録」から「事実の記録」へ
panda728
PRO
0
200
Temporal Knowledge Graphで作る! 時間変化するナレッジを扱うAI Agentの世界
po3rin
5
1k
はじめてのDSPy - 言語モデルを『プロンプト』ではなく『プログラミング』するための仕組み
masahiro_nishimi
4
17k
理論と実務のギャップを超える
eycjur
0
200
Leading Effective Engineering Teams in the AI Era
addyosmani
7
670
Server Side Kotlin Meetup vol.16: 内部動作を理解して ハイパフォーマンスなサーバサイド Kotlin アプリケーションを書こう
ternbusty
3
260
kiroとCodexで最高のSpec駆動開発を!!数時間で web3ネイティブなミニゲームを作ってみたよ!
mashharuki
0
980
登壇は dynamic! な営みである / speech is dynamic
da1chi
0
390
ネストしたdata classの面倒な更新にさようなら!Lensを作って理解するArrowのOpticsの世界
shiita0903
1
170
NIKKEI Tech Talk#38
cipepser
0
320
Featured
See All Featured
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.5k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.3k
Music & Morning Musume
bryan
46
6.9k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
1.7k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
15k
Why You Should Never Use an ORM
jnunemaker
PRO
59
9.6k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.2k
Into the Great Unknown - MozCon
thekraken
40
2.1k
The Power of CSS Pseudo Elements
geoffreycrofte
80
6k
A Modern Web Designer's Workflow
chriscoyier
697
190k
Side Projects
sachag
455
43k
Optimising Largest Contentful Paint
csswizardry
37
3.5k
Transcript
DevTools 🪄 Prisma Media - 2024
Settings
Settings > Elements • Show user agent shadow DOM •
Show CSS documentation tooltip
Settings > Network • Disable cache while DevTools is open
Settings > Debugger • Disable JavaScript
Command
Command • Commande+Maj+P (Mac) • Run command, open file, snippet
• Capture screenshot • Block ads
Multi panel Appuyer sur Echap pour ouvrir un second panneau
Console tab
Console ⚡ • Live expression • Utilities (calc, $0, copy,
getEventListeners, monitorEvents) • Store as global variable • Preserve log
Elements tab
Elements ⚡ • Recherche de sélecteur (Commande+F), très pratique !
• DOM breakpoints • Force element state • Styles computed • Event listeners • Scroll into view
Device emulation ⚡ • Responsive vs device • Preset media
queries • Show media queries • Pixel ratio (responsive only)
Source tab
Source ⚡ • Breakpoints (debugger, breakpoint, logpoint) • Call stack
• Scope • Restart frame • Console panel • Workspace/overrides
Snippet ⚡ • Stocker des petits bouts de code •
Réutilisable et accessible • … A partager entre les équipes
Node debugger ⚡ • Debugger un script ou une application
Node.js • Prérequis ◦ Configuration VSCode ◦ Exécuter Node en mode inspection • Debug depuis VSCode (breakpoint, variable, console) • Debug depuis Chrome, chrome://inspect
Application tab
Application ⚡ • Manifest • Storage • Local storage/session storage
• Cookies
Performance tab
Performance ⚡ • New home (LCP, CLS, INP) • Comparer
les environnements • Enregistrement et analyse d’un rapport • Sidebar insights/annotations • Memory (ex Insights panel monitor)
Network tab
Network ⚡ • Preserve log • Network condition (cache, throttling,
user agent, encoding) • Filter (extension simple/multiple, text), stats updates • Initiator • Copy request as • Size (network vs resource size)
Tools
Tools > Network request blocking • Bloquer un domaine ou
une url • Désactiver par défaut et à chaque fermeture de la DevTools • Vs extension de blocage • Badge de status ⚠
Tools > Rendering • prefer-color-scheme • media type • prefer-reduced-motion
• …
Tools / Coverage • Code non utilisé sur la page
Tools > CSS overview • Couleurs • Fonts • Media
queries
CSS overview - Overview 1/2
CSS overview - Overview 2/2
Tools > AI assistant • Utilise Gemini (anciennement Bard) •
Gratuit • Attention à la confidentialité /!\ • Ex d’analyse : style, réseaux, sources, performance • Accès au script d’analyse • Conversationnel
AI Assistant - Optimisation de l’accessibilité
AI Assistant - Optimisation des sélecteurs CSS
Ressources • https://developer.chrome.com/blog • https://developer.chrome.com/docs • https://umaar.com/dev-tips • Commande “What’s
new” dans la DevTools • Chrome Canary pour les versions bêtas • https://nodejs.org/en/learn/getting-started/debugging