Five tricks to use in the Console Panel
Use the inspect() command to jump straight to a passed-in DOM node inspect($('p')) Use the copy() command to copy text to your clipboard copy(Object.keys(window)) // stores ["top", "window",...
View ArticleEasily duplicate DOM nodes
These are essentially cut/copy and paste operations. You can easily change the DOM without having to edit the HTML as a giant string. Right click on a node and select Copy. You can paste in your code...
View ArticleUsing poster images on plugin content
Several weeks ago, Chrome announced a new content setting that automatically pauses plugin content that it detects to be peripheral to the main content of the site will go live to all users of Chrome...
View ArticleNew Release of Material Design Lite - 1.0.4
Material Design Lite 1.0.3 (and a regression fixing 1.0.4) are out! This release has focused on library, templates, docs and build process fixes. We’ve had over 140 commits from our many contributors...
View ArticleSimple keyboard tricks to use in the Styles Pane
You can Tab through the significant portions of a CSS Rule. This includes: A selector (e.g. h1) A property (e.g. color) A value (e.g. green) Did you know you can also Shift + Tab to cycle backwards?...
View ArticleDevTools Digest: Aggregated Timeline Details, Color Palettes and More
It’s been a feature-rich month in Chrome Canary. Read on to learn which third party scripts cause perf issues on your site with the Aggregated Details in Timeline, how to choose consistent colors with...
View ArticleThe larger-than advanced Network Panel filter, and a few others
Use the Advanced Network Panel Filtering feature to narrow down resources to exactly what you want to find. For example: larger-than:100 will find and filter for resources larger than 100 bytes You...
View ArticleUsing requestIdleCallback
Many sites and apps have a lot of scripts to execute. Your JavaScript often needs to be run as soon as possible, but at the same time you don’t want it to get in the user’s way. If you send analytics...
View ArticleUsing the web app manifest to create a solid color loading screen
When you launch your web app from the home screen a number of things happen behind the scenes: Chrome needs to launch. The renderer that displays the page needs to start up. Your site needs to loaded...
View ArticleUsing the web app manifest to specify a site wide theme colour
Chrome introduced the concept of a theme color for your site in 2014. The theme color is a hint from your web page that tells the browser what color to tint UI elements such as the address bar. For...
View ArticleRolling out Public Key Pinning with HPKP Reporting
Using SSL on your site is an important way to preserve security and privacy for your users. But enabling SSL isn’t the end of the story: there are many steps you can take to further enhance the...
View ArticleTab Discarding in Chrome: a Memory-Saving Experiment
Reducing Chrome’s memory footprint is one of the team’s top priorities this year. We’ve already seen up to a 45% reduction in GMail’s memory usage thanks to improvements in V8’s garbage collection...
View ArticleAutomating resource selection with Client Hints
Building for the web gives you unparalleled reach. Your web application is a click away and available on most every connected device—smartphone, tablet, laptop and desktop, TV, and more—regardless of...
View ArticleHistory API: Scroll Restoration
Using the History API to manage your URLs is awesome and, as it happens, a crucial feature of good web apps. One of its downsides, however, is that scroll positions are stored and then, more...
View ArticleUpdates to the service worker cache API
I’ve been asked to write this post on a fairly minor update to the service worker cache API. I didn’t think it warranted its own article, but after a long debate that eventually came down to a game of...
View ArticleThe EME Logger extension
Do you use Encrypted Media Extensions? If so, you may be interested in EME Logger: a Chrome extension from Google that logs EME events and calls to the DevTools console along with debugging...
View ArticleChoose cameras, microphones & speakers from your web app
Modern browsers make it possible to select input and output devices including cameras, microphones and speakers. For example: On a phone, select the front or rear-facing camera. On a laptop, choose...
View ArticleInput Device Capabilities
Chrome 47 has a new feature that makes it easier to understand the how users interact with your site: InputDeviceCapabilities! Let’s step back a bit and learn why this is important. DOM input events...
View ArticleDevTools Digest: Tab reordering, Console is #2 and framework event listeners
Re-order DevTools tabs which ever way suits you best; see exactly where framework events were bound and block network requests to see which third party scripts slow you down. Better Panel Navigation:...
View ArticleAdding a Splash screen for installed web apps in Chrome 47
Over the past year we have focused on letting developers build sites and apps that feel like they are installed on the user’s system: Service Worker for letting you easily build offline first...
View Article