{"version":"https://jsonfeed.org/version/1","title":"Aaron Gustafson: Content tagged DevTools","description":"The latest 20 posts and links tagged DevTools.","home_page_url":"https://www.aaron-gustafson.com","feed_url":"https://www.aaron-gustafson.com/feeds/devtools.json","author":{"name":"Aaron Gustafson","url":"https://www.aaron-gustafson.com"},"icon":"https://www.aaron-gustafson.com/i/og-logo.png","favicon":"https://www.aaron-gustafson.com/favicon.png","expired":false,"items":[{"id":"https://www.aaron-gustafson.com/notebook/links/debug-memory-leaks-with-the-microsoft-edge-detached-elements-tool/","title":"🔗 Debug memory leaks with the Microsoft Edge Detached Elements tool","content_html":"<p>Memory leaks suck and they proliferate when you slice &amp; dice the DOM using JavaScript. Edge DevTools makes it easy to debug “detached elements” now.</p>\n","social_text":"Memory leaks suck and they proliferate when you slice & dice the DOM using JavaScript. @MSEdgeDev now makes it easy to debug “detached elements” in DevTools.","url":"https://www.aaron-gustafson.com/notebook/links/debug-memory-leaks-with-the-microsoft-edge-detached-elements-tool/","external_url":"https://blogs.windows.com/msedgedev/2021/12/09/debug-memory-leaks-detached-elements-tool-devtools/","tags":["JavaScript","DevTools"],"image":"https://blogs.windows.com/wp-content/uploads/prod/sites/33/2021/09/1fcfaeac10ed41b08decb59e35dad86b.png","date_published":"2021-12-09T17:44:40Z"},{"id":"https://www.aaron-gustafson.com/notebook/links/using-the-chrome-devtools-new-code-coverage-feature-ca96c3dddcaf/","title":"🔗 Using the Chrome DevTools new code coverage feature","content_html":"<p>While the name is a bit confusing, this new tool helps you compare the volume of code you’ve authored to the the amount of code that is actually executed by the browser. It’s a cool idea, but you should take it’s results with a grain of salt: This tool is only diagnosing your project based on <em>the current page and/or flow</em> (if it’s a single page app). Be careful not to take the results as gospel and start eliminating code without knowing whether it’s actually unused in all scenarios.</p>\n<p>Now… tie this into an automated testing tool and gather results from a complete run-through of an app or site and you’ve got something you can actually use to improve your site’s performance.</p>\n<p>It’s worth noting that there are static analysis tools for many task runners that can actually run queries against your HTML templates and remove unused styles automatically. I’ve used <a href=\"https://www.npmjs.com/package/gulp-uncss\"><code>gulp-uncss</code></a> on a few projects and found it to work reasonably well (though you have to tune it for any JavaScript-related styles since it only consults your HTML to find matches).</p>\n","url":"https://www.aaron-gustafson.com/notebook/links/using-the-chrome-devtools-new-code-coverage-feature-ca96c3dddcaf/","external_url":"https://blog.logrocket.com/using-the-chrome-devtools-new-code-coverage-feature-ca96c3dddcaf","tags":["performance","CSS","JavaScript","DevTools"],"image":"https://storage.googleapis.com/blog-images-backup/1*gD8lX40PSemDOZgvT695Mg.png","date_published":"2017-04-12T15:40:30Z"}]}