<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Jolora</title>
	<atom:link href="http://www.jolora.co.uk/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jolora.co.uk</link>
	<description>Web Design in Flintshire, North Wales</description>
	<lastBuildDate>Mon, 01 Feb 2010 13:24:23 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Introduction to Safari 4&#8217;s Web Inspector</title>
		<link>http://www.jolora.co.uk/introduction-safari-web-inspector/</link>
		<comments>http://www.jolora.co.uk/introduction-safari-web-inspector/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 14:00:38 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://www.jolora.co.uk/?p=620</guid>
		<description><![CDATA[Until recently, Mozilla Firefox had been my browser of choice, especially when it comes to coding up a site. This is much in part to the phenomenally popular Firebug extension. But over the past couple of months I&#8217;ve found a great reason to switch back to Safari &#8211; the develop menu.
Despite its overhaul with the [...]]]></description>
			<content:encoded><![CDATA[<p>Until recently, <a title="Mozilla Firefox" href="http://www.mozilla.com/firefox/" target="_blank">Mozilla Firefox</a> had been my browser of choice, especially when it comes to coding up a site. This is much in part to the phenomenally popular <a href="http://getfirebug.com/">Firebug</a> extension. But over the past couple of months I&#8217;ve found a great reason to switch back to Safari &#8211; the develop menu.</p>
<p>Despite its overhaul with the release of Safari 4 back in July, there hasn&#8217;t been very much attention surrounding the Safari develop menu. I thought a brief introduction to this powerful feature would give some other developers another reason to switch to Safari (and I mean <em>brief </em>introduction&#8230; there is no way I have the time to cover every option provided by this extensive tool!)</p>
<p>To enable the menu check &#8216;Show Develop menu in menu bar&#8217; in the advanced panel of Safari&#8217;s preferences.</p>
<p>From the menu you have immediate access to some simple but very useful features such as adjusting the browser&#8217;s user agent or disabling various features enabling easier testing. But probably the most powerful option available from this menu is the Web Inspector.</p>
<h3>Web Inspector</h3>
<p>The Web Inspector is probably the feature that Firebug users will feel most familiar with. Simply translated Firebug&#8217;s &#8216;HTML&#8217; and &#8216;CSS&#8217; panels are called &#8216;Elements&#8217; in Web Inspector; &#8216;Script&#8217; remains the same; the DOM section is now built into the properties area of Web Inspector&#8217;s &#8216;Elements&#8217;; and &#8216;Net&#8217; is now known as &#8216;Resources&#8217;. Finally, the console always sits at the bottom of the inspector displaying the number of errors and warnings in the bottom right.</p>
<h3>Console</h3>
<p>The console button makes it very easy to quickly pop open and close the console giving easy access to error and warning details as well as the command line itself. Probably one of my favourite new features is the auto-complete feature when using the command line. As you type the console throws suggestions at you, which you can cycle through with the TAB key before accepting with the right arrow key.</p>
<div id="attachment_678" class="wp-caption alignnone" style="width: 600px"><img class="size-full wp-image-678" title="Safari Web Inspector Console" src="http://www.jolora.co.uk/wp-content/uploads/2010/01/safari_console.jpg" alt="Safari Web Inspector Console" width="590" height="360" /><p class="wp-caption-text">Auto-complete suggestions in web inspector’s console command line</p></div>
<p>This is a pretty neat time saving trick, however much command line experience you have. On another note for potential Firebug coverts, the command line is compatible with Firebug&#8217;s own.</p>
<h3>Elements Panel</h3>
<p>The Elements panel is probably where I spend most of my time during projects. Much like Firebug&#8217;s HTML and CSS panels, Web Inspector makes it ridiculously easy to try out changes to both areas of your code. However, I think most developers would agree that after using Web Inspector for just a bit you&#8217;ll find it far more intuitive and refined than Firebug&#8217;s editor.</p>
<div id="attachment_670" class="wp-caption alignnone" style="width: 600px"><img class="size-full wp-image-670" title="Safari Web Inspector - Elements" src="http://www.jolora.co.uk/wp-content/uploads/2010/01/web_inspector_elements.jpg" alt="Safari Web Inspector - Elements" width="590" height="360" /><p class="wp-caption-text">Safari Web Inspector - Elements</p></div>
<p>The &#8216;Styles&#8217; sidebar make it very easy to manage even the most complicated of stylesheets and I often use it to help me cut out unnecessary chunks of code. Also the &#8216;Metrics&#8217; section offers you a handy border box model for your elements which can be edited directly and &#8216;Properties&#8217; gives you a convenient way to browse and edit DOM attributes/properties.</p>
<p>I also find myself constantly inspecting clicked elements through the use of that little magnifying glass button in the bottom left of the Web Inspector.</p>
<h3>Resources Panel</h3>
<p>Every good designer knows that however beautiful a design is, it will only go to waste if visitors don&#8217;t hang around long enough to actually see it render. The most efficient way to improve website loading time is through reducing http requests and file sizes &#8211; both of these are measured through Web Inspector&#8217;s &#8216;Resources Panel&#8217;.</p>
<div id="attachment_706" class="wp-caption alignnone" style="width: 600px"><a href="http://www.jolora.co.uk/wp-content/uploads/2010/01/web_inspector_resources.jpg"><img class="size-full wp-image-706" title="Safari's Web Inspector Resources Panel" src="http://www.jolora.co.uk/wp-content/uploads/2010/01/web_inspector_resources.jpg" alt="Safari's Web Inspector Resources Panel" width="590" height="360" /></a><p class="wp-caption-text">Safari&#39;s Web Inspector Resources Panel</p></div>
<p>Apart from displaying results in a beautifully efficient manner, the panel also offers you the option to sort results through a variety of parameters including: response time, start time, end time, duration and latency.</p>
<h3>Scripts Panel</h3>
<p>I suppose the first thing that should be said about this panel is just how fast it is. It truly is dramatically faster than the tool included with previous versions of Web Inspector. I also find that leaving it enabled all the time doesn&#8217;t appear to have much effect at all on my browsing speed (although I&#8217;m sure some it does have some effect).</p>
<div id="attachment_717" class="wp-caption alignnone" style="width: 600px"><img class="size-full wp-image-717" title="Web Inspector's Scripts Panel" src="http://www.jolora.co.uk/wp-content/uploads/2010/01/web_inspector_scripts.jpg" alt="Web Inspector's Scripts Panel" width="590" height="360" /><p class="wp-caption-text">Web Inspector&#39;s Scripts Panel</p></div>
<p>From this panel you can see all the script resources that are included in the current page. You have standard controls for pausing and resuming scripts and whilst paused you can see the current call-stack and in-scope variables in the sidebar.</p>
<h3>Profiles Panel</h3>
<p>Put simply, the &#8216;Profiles&#8217; panel allows you to see a break down of where execution time is spent within your page&#8217;s javascript.</p>
<div id="attachment_726" class="wp-caption alignnone" style="width: 600px"><img class="size-full wp-image-726" title="Web Inspector's Profiles Panel" src="http://www.jolora.co.uk/wp-content/uploads/2010/01/web_inspector_profiles.jpg" alt="Web Inspector's Profiles Panel" width="590" height="360" /><p class="wp-caption-text">Web Inspector&#39;s Profiles Panel</p></div>
<p>The user interface is essentially a sortable chart of results helping you to identify which functions have the largest performance impact on your scripts. I haven&#8217;t had much chance to look beyond the basics of this panel yet but I&#8217;ve found it easy so far to create profiles with the useful record button in the bottom left of the panel. Firebug users will also be happy to find out that the profiler is compatible with Firebug&#8217;s console.profile() and console.profileEnd(). Finally it&#8217;s also very easy to filter results with the focus (the eye) and the exclude (the x) button at the bottom of the panel.</p>
<h3>Databases Panel</h3>
<p>I&#8217;ve had very little interaction so far with the Databases panel. Essentially this tool gives developers a way to manage session storage and local storage &#8211; a feature obviously included for those working with the development of HTML5 applications. Unfortunately I have personally been missing a cookies section on this panel, which seems like a strange feature to leave out, but is hopefully just a temporary oversight.</p>
<h3>Conclusion</h3>
<p>So I suppose it would be a bit of a cop out to not give an answer now on whether Web Inspector is ready to ease the transition for developers from Firefox to Safari&#8230; but the answer truly is dependant on your requirements. I personally find the small niggles (such as lack of syntax highlighting in css) with Web Inspector worth working through because I&#8217;m much happier designing for webkit over any other engine. Developers who deal more heavily with scripts, databases and the such might understandably prefer to stick with Firebug for now but I&#8217;m confident that in time Web Inspector will make the improvements to cater for everyone.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jolora.co.uk/introduction-safari-web-inspector/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
