As a web developer, I absolutely could not live without great in-browser developer tools. I use them every day, and they can certainly make your life much easier. Typically my browser of choice is Chrome, so I thought I would take some time to introduce a few new features in the latest release that are really, really cool.
So, Google Chrome's latest version (59) has quite a few new features that are worth mentioning and that I'll briefly review within this post.
- Explicit Request Blocking
- CSS and Javascript Code Coverage
- Full Page Screenshots
- Async Await Step Over
Explicit Request Blocking
Troubleshooting unknown or unexpected scenarios can be tough to do sometimes. Simulating if your CDN is down, or if a given resource simply fails to load can be done, but this latest Chrome feature makes it much, much easier.
Chrome now allows you to simply block a request from resolving, allowing your specific fallback logic to kick into gear and see how your site reacts. This feature can be set up two ways by either explicitly defining some patterns to determine which requests to block using Menu > More Tools > Request Blocking,
Or by simply right-clicking a particular request that you want to disallow in the Network menu and choosing the 'Block Request' option,

CSS and Javascript Code Coverage
As developers, we should always be striving to be better and in the realm of web applications, this typically means getting the client what they need as fast (and efficiently) as we can.
Generally you can use techniques like minification and bundling to help reduce the overall size of the resources that you are sending down the pipe. But what if you didn't even need all of them? What if you had a way to determine exactly which CSS selectors that a given page was using or which functions were being called on a specific page? Well with the CSS and Javascript Code Coverage feature, you do!
To take advantage of this, you'll need to explicitly enable the Coverage tab by clicking on the Ellipsis menu, choosing More Tools and selecting Coverage,
Now when you open up your Developer Tools on a page, Chrome will now show you what percentage of the code within that file is actually being used,

Finally on top of that, you can click on a specific file within the Coverage tab and it'll show you exactly which lines are and aren't being used within your site,
This can be extremely useful in some scenarios as it will allow you to fine tune your resources ensure that you aren't wasting precious bytes by sending down things that you don't need. Now this may not always be the case, but it's certainly an area that you can look to improve.


Anil JhaPosted Jul 4, 2017, 2:46 AM
Nice article......
Manoj KulkarniPosted Jun 27, 2017, 12:40 AM
Nice article. Thank you for sharing