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
3
DevTools 🪄 #2024
Yoriiis
December 10, 2024
Tweet
Share
More Decks by Yoriiis
See All by Yoriiis
Performances
yoriiis
0
2
Other Decks in Programming
See All in Programming
ThorVG Viewer In VS Code
nors
0
770
dchart: charts from deck markup
ajstarks
3
990
Patterns of Patterns
denyspoltorak
0
1.4k
Automatic Grammar Agreementと Markdown Extended Attributes について
kishikawakatsumi
0
180
余白を設計しフロントエンド開発を 加速させる
tsukuha
7
2.1k
CSC307 Lecture 06
javiergs
PRO
0
680
疑似コードによるプロンプト記述、どのくらい正確に実行される?
kokuyouwind
0
380
OCaml 5でモダンな並列プログラミングを Enjoyしよう!
haochenx
0
140
Spinner 軸ズレ現象を調べたらレンダリング深淵に飲まれた #レバテックMeetup
bengo4com
1
230
CSC307 Lecture 09
javiergs
PRO
1
830
AIによるイベントストーミング図からのコード生成 / AI-powered code generation from Event Storming diagrams
nrslib
2
1.9k
【卒業研究】会話ログ分析によるユーザーごとの関心に応じた話題提案手法
momok47
0
190
Featured
See All Featured
How to Ace a Technical Interview
jacobian
281
24k
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
0
1.1k
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
170
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
60
42k
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
580
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
1
5.2k
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.1k
The Illustrated Children's Guide to Kubernetes
chrisshort
51
51k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1k
Leo the Paperboy
mayatellez
4
1.4k
The Mindset for Success: Future Career Progression
greggifford
PRO
0
230
Amusing Abliteration
ianozsvald
0
98
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