Why You Should Start Using Chrome Developer Tools Right Now

Last Updated on September 22, 2022 by 25 Comments

Why You Should Start Using Chrome Developer Tools Right Now
Blog / Resources / Why You Should Start Using Chrome Developer Tools Right Now

Having a nice set of handy tools to help test your website is essential for developers. Where’s the best place to keep them? In your browser, of course! Google’s popular web browser, Chrome, has developer tools built right in. It’s a set of tools made for web-authoring and debugging. The Chrome Developer Tools (known as DevTools) give developers access to the internal workings of the web browser and web apps.

Chrome Developer Tools

Using Chrome DevTools you can know the styles that are used, the size of the images, the scripts that are used, etc. You can debug and know what errors exist on the page. You can even toggle styles on or off, or change them completely, to see what effect it has on your website.

It’s In Your Browser

The tools themselves are easy to get to. Here are three ways to open them:

  1. In your Chrome browser – select the Chrome menu (the three horizontal bars in the top right corner), select More Tools, and then select Developer Tools.
  2. Right click on an element on any page and select Inspect Element.
  3. On your keyboard in Windows select ctrl + shift + i. On Mac select cmnd + opt + i.

Any of these will open up the DevTools window at the bottom of your browser.

Primary Window

It’s In Your Browser

The tools appear at the bottom of your screen. You’ll see a primary window with menus across the top and elements as the default view, and a secondary window with menus, and styles as the default selection.

The tools are grouped into tasks. There are 8 groups that includes Elements, Network, Sources, Timeline, Profiles, Resources, Audits, and Console.

Elements

Elements

Here you can see your page’s HTML structure. There is a toggle at the bottom for HTML and Body. You can mouse over any of the elements to see detailed information about each one.

You can click on the arrows to open and close the contents of the primary elements to make them easier to read. So you can close the body and just read the header, choose element within the header to see, etc. This is an excellent tool for viewing your website’s HTML.

Network

This shows each element that will be loaded, how they are loaded, the type of file it is, the size of the file, the time it takes to load, and a timeline of when it will be loaded within the page-load sequence. This can be used to troubleshoot network issues such as bottlenecks in page-loading and bad requests.

Network

For example, if you see a lot of 404 errors you can look closer to see what the issues are. Maybe you’ve taken a page down that is still getting a lot of traffic, or maybe someone has typed a link wrong.

Sources

This shows the scripts and snippets that will load and where they’re coming from.

Timeline

This shows you the time for each resource to load. You can see what takes the most time, which helps in reduce your page-loading.

Profiles

This shows the memory usage of each element. This is great for showing you which code needs to be optimized.

Resources

Resources

Here you can inspect the resources that are loaded. You can look at cookies, application cache, HTML5 databases, etc.

Audits

This lets you analyze the page. You can audit after it has loaded or as it loads.

Audit Present State

First, I selected to run Audit Present State.  This runs the audit as the site currently sits, already loaded into my browser.

Audit Present State

It gives me a list of items, colors them according to their importance, and shows the number of issues. I can see more detail by clicking on them.

Audit Present State 2

I’ve expanded several of them to see the detailed information about each one. It gives me information on Network Utilization and Web Page Performance. It gives me advice on how to fix the issues and prioritizes them for me.

Reload Page and Audit on Load

Reload Page and Audit on Load

I went back and selected to audit on load. The results are similar, but as expected there are more issues on loading the page than after the page has loaded.

Between the two I get information about JavaScript, browser caching, proxy caching, cookie size, serving content from a cookieless domain, image dimensions, order and styles of scripts, placing CSS in the document head, removing unused CSS riles, and using normal CSS property names. Of course the results will vary depending on the site.

The information isn’t as detailed as PageSpeed Insights, but it’s enough to get me started and I like the convenience of it being built in to the tool I’m using anyway. I recommend running it every time you make a change to your site. It’s too easy to use to not use it.

Console

Console

This is the JavaScript Console where you can test pages and apps. You can debug your scripts and get advice on what changes to make. The Console allows you to enter commands so that you can interact with your webpage. It will log the diagnostics info to help you with debugging. You can use it in the main screen or in the drawer (the window under the main screen).

You can use the Console or Command Line API’s. You can write to the Console, format your elements and style outputs, measure the time of execution or loading, view and mark the timeline, count statements, set breakpoints, evaluate expressions, monitor events, stack messages, see errors and warnings, and much more.

This is a powerful tool, but there is a lot to using it. Fortunately good reference material is supplied with examples on how to use it.

Debugging

Debugging

Selecting ctrl + p in Windows, or cmd + p on Mac, will open the debug screen where you can select the scripts to debug. This tool gives you the debugging features you’d expect to see in any programming environment: pause, continue, step into, step over, breakpoints, formatted code, etc.

Detailed help files are provided to step you through using the debugging mode.

CSS Styles Window

Styles

The box on the far right contains all of the CSS information. As you select an element, the Styles window to the right shows you the styles info for the element. This section is interesting. There are five groups of tools: Styles, Computed, Event Listeners, DOM Breakpoints, and Properties.

Styles

You can select the styles and manually change them in this window. For example, you can select the font size and color.

Styles 2

Select the font size and enter your own size. When you do, the font size of the font you selected will change on the screen.

Styles 3

Making the selection on a font color will open up the color-picker. Select the color you want and hit enter. You’ll see the font that you selected change to the new color. This is a great way to try out new font styles, sizes, and colors.

If you click on site.CSS on the right you’ll open a larger window with the information in detail. Here, you can type in the name of the font you want to use, specify a color, specify a size, etc.

Computed

This shows the box-sizing in pixels. It has padding, border, and margin.

Device Mode

Device Mode

There is a little button on the left between the magnifying glass and the Elements menu that look like a mobile device. Guess what? It is a mobile device. This is the device emulation mode. This is a great way to see how responsive your site is.

Device

Device

What’s even cooler than it just being a mobile device is that you can choose which mobile device it is and then you can see the website as if you were looking at it on that device. Now, THAT’S awesome!

Device 2

I selected Amazon Kindle Fire HDX 7” and the screen mimicked that device so I could see what the site would look like on its screen and how the touch would work.

Device 3

You can change the orientation of the screen by hitting the Swap Dimensions button.

This is a great way to see what your WordPress site looks like on the smaller mobile screen. I chose iPhone 6 and the screen size changed to match the new screen size and resolution. There are many devices to view. You can also see a custom size by dragging the sides to increase or decrease the size.

Network

Device Network

There’s also a selection to choose the type of network you’re accessing the site through. This allows you to see your website’s performance through various connection types and speeds. You can test several speeds from 50 Kbps GPRS to 30 Mbps WiFi, and several 2G, 3G, and 4G connection speeds. This is an excellent way to test the speed of your website through carious networks and get insights on what to improve.

Media Queries

Media Queries

There is a little button in the top left that looks like stair steps. It opens another section of screen above the website window that shows different pixel widths. Clicking on them takes the mobile screen to that size. They show you:

  • Queries targeting a maximum width
  • Widths within a range
  • Queries targeting a minimum width

This helps you to adjust the styles and media content for a fully responsive design.

The Drawer

The Drawer

There is another section of tools under the main screen called the drawer. This adds:

Console – this is the same console as in the primary window. By placing it here you can use it together with any of the tools in the primary window.

Search – allows you to search for sources.

Emulation – you can choose Device (Here you can choose the model, resolution, network, etc.), Media, Network (throughput and user agent), and Sensors (touchscreen, accelerometers, etc.).

Rendering – show paint rectangles, composited layer borders, FPS meter, continuous page repainting, and potential scroll bottlenecks.

Settings and More

The menu bar on the right will tell you the number of errors and warnings on your site, allow you to hide the drawer at the bottom, let you adjust the settings, and dock the tool to the main window (creating a split-screen between your website and the DevTools).

There is a vast amount of settings that you can adjust so you can modify the tools to work the way you need them to.

Chrome Canary

Chrome Canary

If you really want to be on the bleeding edge of Google’s Chrome DevTools then give Chrome Canary a try. Its icon is yellow. Get it? It needs a cape. It’s the latest and greatest from Google. It’s designed for developers and has the latest version of the DevTools. It isn’t stable enough for general use yet, so it will probably break your system.

If you’re prone doing serious damage to your environment when your system breaks, then look at the Chrome Canary icon in the image above and don’t blink for five seconds.

Now you can move on to the end. You won’t remember this part.

Wrapping Up

Google Chrome’s Developer Tools is a great tool for troubleshooting, improving network performance, seeing your site on different screen sizes and resolutions, and getting information on where your site needs improvement. There are a lot of features and you can add even more through extensions. These tools alone are a great reason to install Google Chrome, even if it’s not your primary browser. Taking the time to learn the features will pay off and your site and visitors will thank you for it.

Your turn! Do you use Chrome Developer Tools? Did I leave out your favorite feature? Do you have anything to add? I’d like to hear about it in the comments below!

Article thumbnail image by Anikei / shutterstock.com

Divi

Want To Build Better WordPress Websites? Start Here! 👇

Take the first step towards a better website.

Get Started
Divi
Premade Layouts

Check Out These Related Posts

Top Features Of Divi Dash For Busy WordPress Agencies

Top Features Of Divi Dash For Busy WordPress Agencies

Posted on October 17, 2024 in Resources

Running a WordPress agency isn’t a walk in the park. It’s a juggling act of keeping clients happy, staying on top of changes, managing your team, building killer websites, and maintaining them — all while trying to stand out in a crowded market. But what if you had a tool to help...

View Full Post
WordPress vs Medium (2024) — Where Should You Blog?

WordPress vs Medium (2024) — Where Should You Blog?

Updated on February 14, 2024 in Resources

If there is one question that goes back to the very beginning of blogging, it’s “what blogging platform should I use?” Everyone asks this question (to Google, most likely), and everyone gets bombarded with a thousand different answers. That’s primarily because there are so...

View Full Post
9 Non-Profit Child Themes for Divi

9 Non-Profit Child Themes for Divi

Updated on January 23, 2023 in Resources

There are lots of nonprofit organizations across the globe. Just about every one of them needs a well-designed website to tell their story and receive donations to help their causes. Divi is an excellent theme for nonprofits such as charities. Fortunately, you don’t have to start from scratch for...

View Full Post

25 Comments

  1. I created a small plugin which provides a selection of themes and editor settings in Chrome Developer Tools: DevTools Author | http://mikeking.io/devtools-author

    • Looks great Mike, thanks for sharing.

  2. Amazing step by step representation of Chrome DevTools. Really Helpful. Thanks! Brenda Barron.

  3. Hi,
    Really awesome post Learn new things Thanks for sharing with us keep up it have a nice week Ahead

  4. F12 for Inspect Tool is easier than CTRL+SHIFT+I 😉

  5. How about comparing Chrome Dev Tools with the Firefox Developer Edition, I found FF Developer Edition really cool, plus it’s black colors work best for long hours of work.

    Firefox Developer Edition is a custom made for developers version of Firefox, seems suitable for a nice head to head with Chrome Dev Tools.

    • local storage delete

  6. I learnt a huge amount from this article. Very clear explanation of a fantastic tool.

  7. Can you guys please stop posting articles !!?

    Since I am still adapting and learning, and a Elegant Themes user as well. I have my hands full day and night learning to master the aspects of affiliate marketing and web creation. I must give you….. every article you publish is of high interest to me and written in such a way, a mediocre can understand !

    I plan to go through and learn and implement the ropics you publish. Just that the time is of the essence, hence I bag them in my to-do list. But………. the great articles keep pouring in, faster then I manage to learn all the great tips and features. Guess I will have to speed up to get on track 😉

    Well done and thanks for all the great info. Information that is not filled with up-sells and other shady techniques. One can always trust your recommendations.

    Keep up the good work ET !

  8. I never saw that chrome developer tools supports devices view also, now I saw it Wow, earlier I used to test the responsiveness of the website using online websites, thanks for the info.

  9. Well written article.

    I use the Dev tools all ready.
    But you gave me some extra information.

    Well done Brenda.

  10. Fantastic! I’ve only used these tools lightly to inspect page elements. I didn’t realize there was so much buried in there. Thanks!

  11. We use Chrome and the developers tools and can’t imagine working on site without them. This is a powerful tool suite for developers. We made the switch from Firefox about the same time we switched from PCs to Macs.

  12. I agree with Elijah. Firebug still gets used daily for this task. Chrome is my browser of choice, but has never really hit the sweet spot with dev tools like firebug has.

  13. I would love to give Chrome Developer Tools a try, but we have nothing to debug yet. We are already waiting for almost one year for Extra to be released. But ET has worked so hard and long on this release, it is probably without any problems anyway….

    wink.

  14. Thank you so much Brenda! This is a great article and of great help! I am just a beginner as a web designer (designing a site for the first time for myself! :-)) using elegant divi theme. Your articles are so valuable! Thumbs up!! 😀 (y)

  15. I honestly tried using it a couple of times, but from usability and easy of use perspective (comparing to Firebug) it is just an endless nightmare.
    Chroome is my default browser, and I use it for everything else BUT css adjustments. Firebug is till king of the hill imho.
    But I hae to agree when it comes for advanced stats – like checking the load script time or java script messages – Chrome tools are fine.

    Thanks.
    Elijah.

    • I actually disagree, I find Chrome Dev Tools much more powerful and easier to use than Firebug (at least the Chrome extention, i guess Firefox one is better )

  16. Hi Brenda,

    very good article about the DevTools, its worth a try and save you a lot of time to check so many things. I use them for working on my themes …
    An by the way a very interesting series of articles you have here.

    Thanks for …

  17. Nice, thank you!

  18. I think it’s the best tool for a Web Developer.

  19. Yep I use the Dev tools but only for finding CSS that I want to change.
    Looks as though there is a whole lot more that I could be using it for.

    Good in-depth review Brenda.

  20. Amazing article for Chrome Developer Tools with best step by step information with screenshot. Thanks for share ET & Brenda

Leave A Reply

Comments are reviewed and must adhere to our comments policy.

Get Started With Divi