<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Prince Billy Graham Karmoker</title>
    <description>The latest articles on Forem by Prince Billy Graham Karmoker (@princebillygk2).</description>
    <link>https://forem.com/princebillygk2</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1500832%2Fa842cb4e-98bb-465b-8911-734280a1206b.png</url>
      <title>Forem: Prince Billy Graham Karmoker</title>
      <link>https://forem.com/princebillygk2</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/princebillygk2"/>
    <language>en</language>
    <item>
      <title>10 Advanced Chrome DevTool Tricks Every Frontend Developer Should Know</title>
      <dc:creator>Prince Billy Graham Karmoker</dc:creator>
      <pubDate>Mon, 22 Dec 2025 18:16:28 +0000</pubDate>
      <link>https://forem.com/princebillygk2/10-advanced-chrome-devtool-tricks-every-frontend-developer-should-know-3kk</link>
      <guid>https://forem.com/princebillygk2/10-advanced-chrome-devtool-tricks-every-frontend-developer-should-know-3kk</guid>
      <description>&lt;h2&gt;
  
  
  Trick 1: Find the unwanted CSS
&lt;/h2&gt;

&lt;p&gt;Have you ever struggled to find a buggy or unwanted CSS style after selecting an element in Chrome DevTools? Scrolling through every class and property in the &lt;strong&gt;Styles&lt;/strong&gt; tab can quickly become exhausting. After a while, you might even start scratching your head, still unable to pinpoint the source of the issue.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqbse0j70wsto8jn86jp1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqbse0j70wsto8jn86jp1.png" alt=" " width="744" height="218"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Computed tab to rescue
&lt;/h3&gt;

&lt;p&gt;The easiest way to troubleshoot is by using the &lt;strong&gt;Computed&lt;/strong&gt; tab, which provides an aggregated view of all styles applied to the element.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fefj1jcohjwmyouzhivht.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fefj1jcohjwmyouzhivht.png" alt=" " width="795" height="443"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;When you click the small blue arrow next to a property in the &lt;strong&gt;Computed&lt;/strong&gt; tab, DevTools will take you directly to the actual selector where that style is defined—saving you time.&lt;/p&gt;




&lt;h2&gt;
  
  
  Trick 2: Emulate preferred theme
&lt;/h2&gt;

&lt;p&gt;Simply go to &lt;strong&gt;Elements → Styles&lt;/strong&gt; and click the &lt;strong&gt;brush icon&lt;/strong&gt; in the toolbar. From there, you can select the user’s preferred theme and see how your website behaves in different theme modes—perfect for testing &lt;strong&gt;dark&lt;/strong&gt; and &lt;strong&gt;light&lt;/strong&gt; themes without changing your system settings.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftq3itxlxw58lyjsxryac.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftq3itxlxw58lyjsxryac.png" alt=" " width="615" height="293"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Trick 3: Emulate different states of an element
&lt;/h2&gt;

&lt;p&gt;You can emulate different states of an element in Chrome DevTools by clicking the &lt;code&gt;:hov&lt;/code&gt; button in the &lt;strong&gt;Elements → Styles&lt;/strong&gt; tab toolbar. This lets you apply states like &lt;code&gt;:hover&lt;/code&gt;, &lt;code&gt;:active&lt;/code&gt;, &lt;code&gt;:focus&lt;/code&gt;, &lt;code&gt;:focus-visible&lt;/code&gt;, &lt;code&gt;:focus-within&lt;/code&gt;, and &lt;code&gt;:target&lt;/code&gt; to see how your element looks and behaves in each state—without needing to interact with the page manually.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F89a5nswwo47si8gjv3fy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F89a5nswwo47si8gjv3fy.png" alt=" " width="574" height="354"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Trick 4: Track event listener and its location
&lt;/h2&gt;

&lt;p&gt;If you want to track all events attached to an element and see exactly where they exist in your codebase, select the element in Chrome DevTools and open the &lt;strong&gt;Event Listeners&lt;/strong&gt; tab. Click on any event you want to inspect, and DevTools will show the exact file name, line number, and all listeners assigned to that event. Clicking the event will even take you directly to its location in the file—making debugging much faster and easier.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsce1pt1n1l43iifcm7z9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsce1pt1n1l43iifcm7z9.png" alt=" " width="559" height="362"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Trick 5: Magic selector in Chrome console
&lt;/h2&gt;

&lt;p&gt;Did you know Chrome DevTools has a handy “magic” jQuery-style selector for referring to previously selected elements?&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;$0&lt;/code&gt; refers to the last element you selected in the &lt;strong&gt;Elements&lt;/strong&gt; panel or via a node selector.
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;$1&lt;/code&gt; refers to the element selected just before that, and so on.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fct36kc53o60jgvz304b8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fct36kc53o60jgvz304b8.png" alt=" " width="381" height="246"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Trick 6: Find out unused CSS or JavaScript code
&lt;/h2&gt;

&lt;p&gt;Have you ever wondered which CSS or JavaScript is unused and could be removed to optimize your site’s loading time? Chrome DevTools has a feature called &lt;strong&gt;Coverage&lt;/strong&gt; that helps you find exactly that.&lt;/p&gt;

&lt;p&gt;To enable it, click the &lt;strong&gt;three-dot menu&lt;/strong&gt; in the top-right corner of DevTools, go to &lt;strong&gt;More Tools → Coverage&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fby5zqm3tl9lcxdan1zkg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fby5zqm3tl9lcxdan1zkg.png" alt=" " width="488" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Click the &lt;strong&gt;Start Recording&lt;/strong&gt; button, visit all possible pages and overlays (popup, dialog, etc.), then stop recording. It will show a list of files along with the amount of unused CSS and JavaScript. Clicking a file opens the editor, where unused portions are highlighted in &lt;strong&gt;red&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdmpwkxikhucb7ejlyllz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdmpwkxikhucb7ejlyllz.png" alt=" " width="800" height="483"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;⚠️ One important thing to keep in mind:&lt;/em&gt; just because a CSS rule or JS code isn’t used on the current page doesn’t mean it’s never used. It might be required on other pages or hidden content revealed through buttons or interactions. To get accurate results, navigate through all relevant pages and interactions while recording, then stop the recording before making any decisions.&lt;/p&gt;




&lt;h2&gt;
  
  
  Trick 7: Find the culprit that is slowing you down
&lt;/h2&gt;

&lt;p&gt;Go to the &lt;strong&gt;Performance&lt;/strong&gt; tab and start recording. Reproduce the scenario where the application slows down on the client side. Stop the recording and review the timeline for frame drops. Green bars indicate good performance, while yellow or red bars indicate performance issues. In the &lt;strong&gt;flame chart&lt;/strong&gt;, identify the widest bars. The function at the bottom with the widest bar represents the primary bottleneck. Click it to locate the exact code causing the slowdown.&lt;/p&gt;

&lt;p&gt;Keep recordings between &lt;strong&gt;5–10 seconds&lt;/strong&gt; to make analysis manageable and avoid unnecessary noise.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwzf2nxk5z41rilky2tg6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwzf2nxk5z41rilky2tg6.png" alt=" " width="744" height="385"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Trick 8: Select color with accessibility guide
&lt;/h2&gt;

&lt;p&gt;Go to &lt;strong&gt;Developer Tools → Settings → Experiments&lt;/strong&gt;, and enable &lt;strong&gt;“New Advanced Perceptual Contrast Algorithm (APCA)”&lt;/strong&gt;, which replaces the previous contrast ratio and AA/AAA guidelines.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxa1b3wxe1kswlmbx394d.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxa1b3wxe1kswlmbx394d.png" alt=" " width="800" height="520"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Then select a color and click the &lt;strong&gt;color box icon&lt;/strong&gt;. A popup window will appear. Choose the background color using the color selector, and you will see a thin guideline in the color selector.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fk1cv6fq7ugi3qwu46nbu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fk1cv6fq7ugi3qwu46nbu.png" alt=" " width="418" height="489"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Trick 9: Record your interactions or issue reproducing steps and share with others
&lt;/h2&gt;

&lt;p&gt;Open your preferred website in its initial state. In Chrome DevTools, click &lt;strong&gt;More tabs (&amp;gt;&amp;gt;)&lt;/strong&gt; and open the &lt;strong&gt;Recorder&lt;/strong&gt; tab. Click &lt;strong&gt;Create recording&lt;/strong&gt;, then click &lt;strong&gt;Start recording&lt;/strong&gt; and perform the actions you want on the website.&lt;/p&gt;

&lt;p&gt;You can replay the recording and &lt;strong&gt;export&lt;/strong&gt; or &lt;strong&gt;import&lt;/strong&gt; it in different formats to share with others. This tool should be essential for both QA engineers and developers.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fglya3jzqtcnf63r8sijl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fglya3jzqtcnf63r8sijl.png" alt=" " width="744" height="337"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Trick 10: Enable AI innovations
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8p7h3b6zpwh7e4bikdgr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8p7h3b6zpwh7e4bikdgr.png" alt=" " width="800" height="617"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Not mentioning it in this era is almost impossible. Go to &lt;strong&gt;Chrome DevTools → Settings → AI Innovations&lt;/strong&gt; and enable all the available options. Once enabled, you will gain access to a wide range of AI features across many areas of Chrome DevTools.&lt;/p&gt;

&lt;p&gt;For example, you will see an &lt;strong&gt;AI button&lt;/strong&gt; in many places, allowing you to add items to the chat context and start interacting with them. You can also use AI to understand console errors and even ask why something is slow in the &lt;strong&gt;Performance&lt;/strong&gt; panel.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftkazvihqacluq6r2l7oe.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftkazvihqacluq6r2l7oe.png" alt=" " width="800" height="819"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F27o4kblbsgf86o2obhx1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F27o4kblbsgf86o2obhx1.png" alt=" " width="511" height="266"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftz9dvub87vrj7gdb1830.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftz9dvub87vrj7gdb1830.png" alt=" " width="716" height="603"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;Thank you for your patience! I’m writing this blog after a long break. Connect with me on &lt;a href="https://www.linkedin.com/in/princebillygk" rel="noopener noreferrer"&gt;LinkedIn&lt;/a&gt; or contact me at &lt;code&gt;princebillygk@gmail.com&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Let us know which of these tricks you already use, and share any other advanced or unique Chrome DevTools tips you know in the comments below!&lt;/p&gt;

</description>
      <category>browser</category>
      <category>frontend</category>
      <category>javascript</category>
      <category>html</category>
    </item>
  </channel>
</rss>
