Review: New Developer Tools in Internet Explorer 11

Posted by: Jason N. Gaylords Blog, on 08 Nov 2013 | View original | Bookmarked: 0 time(s)

Windows 8.1 has been out for a few weeks now. Along with Windows 8.1, Internet Explorer 11 was released. IE11 offers the best web standard support of any Internet Explorer browser. This means that the latest finalized specifications for HTML5 and CSS3 features have been implemented within the browser. In addition, the IE team revamped the developer tools (F12 tools).

When you press F12 in the new IE, the first thing youll notice is that IE11 is bringing forward the modern Windows style.

image

The options, in order from top to bottom, are DOM Explorer, Console, Debugger, Network, UI Responsiveness, Profiler, Memory, and Emulator. Below, Ill try my best to touch upon each of these options.

DOM Explorer

The DOM Explorer option has several enhancements. One of the areas that I particularly like are the improvements to Inspect Element. For instance, my current web theme needs to be updated so my Twitter bird is properly positioned. Ill fix this in the upcoming weeks as I tweak my website theme for even better HTML5 support. However, for the purpose of this article, lets assume its still broken. Heres an example of what it looks like if you right-click the image, and choose to Inspect Element:

dom-explorer-1

As you can see, its off to the right. Its not positioned correctly. You can easily see that one of my style elements is causing some of the offset. From within IE, you can alter this by deselecting that style to see its immediate impact.

dom-explorer-2

You can also click on the same line as the closing curly brace to add new styles:

image

As in above under the Styles sub-item, you can also manipulate the container size, padding, border, and margins by clicking on the Layout sub-item. If you click the item, the image below will appear. From this, you can click any of the values to edit them:

image

Finally, the DOM explorer was updated to show a bread crumb trail of nested elements. This allows you to jump to an up-level element to update the style or see the element selected.

image

Console

The console option allows you to access elements using JavaScript. Even if you are unaware of methods or elements, the JavaScript console will provide hints by using Intellisense as shown below:

image

Debugger

The debugger provides more options than the console. As one of the most powerful debuggers yet, this debugger allows you to place breakpoints within scripts or to watch variables defined within your scripts. One of the biggest enhancements to this version of the debugger is that this debugger finally stays within the browser window. Previous IE debuggers would detach from the browser window and open within a new window. If you had a breakpoint set, the window with the web page would lock up causing an unpleasant experience. With the IE11 developer tools, when a breakpoint is hit, the page informs you properly as shown below:

image

Network

The network option provides the network traffic that takes place for your site. It breaks down each round trip to the server or other network resource including content delivery network (CDN) assets. As you can see from the image below, certain resources can really take some time to return a response. I can improve my responsiveness by updating those elements.

image

Besides viewing the overall responsiveness, I can dive further into the individual elements to see the request and response information to get a better understanding of what is going on. As you can see from the image above, theres some code pulling from Amazon, which is an Amazon advertisement, that is causing some slowness on my site. I can see this in greater detail by choosing the details:

image

While the network data provides a great overview on the traffic, it doesnt solve the responsiveness issues solely.

UI Responsiveness

To complement the network option, you can start a performance profile by using the UI Responsiveness option. From this option, you can get a better understanding of the resources needed during a browsing session. You can start a profile session and stop it whenever. As an example, the image below shows a lengthy session that was zoomed in.

image

From this image, you can see that you can zoom in further to get a better understanding of the cost that style or scripts have on the overall performance for your UI. As I scroll down to the timeline graph, I can choose an item, such as my base.js file, to see the overall load time.

image

Profiler

The profiler option allows a profiler to be initiated and captured. When you stop the profiler, it allows you to review the items that were loaded and see the amount of time spent in the area. As an example, the Google Analytics script took some time in certain areas.

image

So, I can double-click a line to jump into the location in debugger.

image

Memory

The memory option will capture the overall memory spent within a page. If there are memory leaks on your site, you can take a baseline snapshot and additional snapshots to see any potential memory issues.

image

Emulation

The emulation option allows developers to emulate beyond just a version of Internet Explorer. Previous versions of IE would allow you to change the version and jump into quirks mode. This version offers something similar, but by default, runs in edge mode. Edge mode is the latest version of web standards running in IE. You can also change to a Windows Phone mode instead of Desktop. While its not a best practice to detect a browser based on user agent string, you can change the user agent string thats being relayed to the web server in the emulation screen. Additional options allow you to specify the orientation and geolocation information. These two settings allow developers to simulate the most common tablet functionality. The emulation tab looks similar to the following:

image

Wrap-Up

Hopefully this post provided some insight into the new developer tools provided in Internet Explorer 11.

Category: Debugger | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 3074 | Hits: 24

Similar Posts

  • Review: New Developer Tools in Internet Explorer 11 more
  • November's Toolbox Column Now Online more
  • October's Toolbox Column Now Online more
  • Telerik Releases New Controls for Silverlight 3 and WPF more
  • Telerik Launches RadControls for Silverlight 3 for Line-of-Business Application Development more
  • How to check your network connection state more
  • Telerik Announces Support for Microsoft Silverlight 3 more
  • Teleriks Q2 2009 Release Expands All-in-one .NET Offering more
  • July's Toolbox Column Now Online more
  • Introduction to Silverlight 3 more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD