<?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>BraveNewCode Inc. &#187; Javascript</title>
	<atom:link href="http://www.bravenewcode.com/tag/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bravenewcode.com</link>
	<description>You dream it up, we code it to life.</description>
	<lastBuildDate>Thu, 22 Jul 2010 00:31:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Shadowbox.js Media Viewer</title>
		<link>http://www.bravenewcode.com/2009/04/shadowboxjs-media-viewer/</link>
		<comments>http://www.bravenewcode.com/2009/04/shadowboxjs-media-viewer/#comments</comments>
		<pubDate>Sat, 04 Apr 2009 06:58:50 +0000</pubDate>
		<dc:creator>Dale Mugford</dc:creator>
				<category><![CDATA[Asides]]></category>
		<category><![CDATA[cool stuff]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[resources]]></category>

		<guid isPermaLink="false">http://www.bravenewcode.com/?p=1479</guid>
		<description><![CDATA[Sexy sexy. There&#8217;s lots of you-name-it &#8216;box&#8217; JS stuff out there, but this package has to be one of the best. Serious work.
]]></description>
			<content:encoded><![CDATA[<p><a href="http://mjijackson.com/shadowbox/index.html">Sexy sexy.</a> There&#8217;s lots of you-name-it &#8216;box&#8217; JS stuff out there, but this package has to be one of the best. Serious work.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bravenewcode.com/2009/04/shadowboxjs-media-viewer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Happy Frog Widget Released</title>
		<link>http://www.bravenewcode.com/2008/09/happy-frog-widget-released/</link>
		<comments>http://www.bravenewcode.com/2008/09/happy-frog-widget-released/#comments</comments>
		<pubDate>Thu, 04 Sep 2008 18:49:27 +0000</pubDate>
		<dc:creator>Duane Storey</dc:creator>
				<category><![CDATA[Clients]]></category>
		<category><![CDATA[happyfrog]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[widget]]></category>

		<guid isPermaLink="false">http://www.bravenewcode.com/?p=392</guid>
		<description><![CDATA[A few months ago we started discussions with the guys over at happyfrog.ca about building them a customized widget that people could place on their own blogs.  We&#8217;re happy to announce that the widget just finished beta testing last week, and officially went live this morning.
If you&#8217;re interested in knowing more about it, check [...]]]></description>
			<content:encoded><![CDATA[<p>A few months ago we started discussions with the guys over at <a href="http://happyfrog.ca">happyfrog.ca</a> about building them a customized widget that people could place on their own blogs.  We&#8217;re happy to announce that the widget just finished beta testing last week, and <a href="http://happyfrog.ca/happyfrog-green-search-widget">officially went live this morning</a>.</p>
<p>If you&#8217;re interested in knowing more about it, <a href="http://www.bravenewcode.com/happy-frog-widget/">check out the happyfrog.ca widget page</a>.   We had a lot of fun making it, and are looking forward to doing additional widgets for other organizations in the future.  </p>
]]></content:encoded>
			<wfw:commentRss>http://www.bravenewcode.com/2008/09/happy-frog-widget-released/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Boom! WPtouch 1.2 Update</title>
		<link>http://www.bravenewcode.com/2008/07/boom-wptouch-12-update/</link>
		<comments>http://www.bravenewcode.com/2008/07/boom-wptouch-12-update/#comments</comments>
		<pubDate>Wed, 23 Jul 2008 05:04:09 +0000</pubDate>
		<dc:creator>Dale Mugford</dc:creator>
				<category><![CDATA[BraveNewCode]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[WP Plugins]]></category>
		<category><![CDATA[WPtouch]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iphone 3g]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[Prototype]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[themes]]></category>
		<category><![CDATA[Updates]]></category>

		<guid isPermaLink="false">http://www.bravenewcode.com/?p=212</guid>
		<description><![CDATA[Ever seen this Steve Jobs video? That&#8217;s how we feel right now, Boom!
We&#8217;ve added an often-requested feature, kinda.
Some have complained that the search &#038; menu drop downs don&#8217;t work, along with the post-excerpt drop down functions, ajax, etc. Those effects are all done using Prototype-based javascript. On some installations, users may have other plugins which [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.bravenewcode.com/wp-content/uploads/iphone12.jpg" alt="" title="iphone12" width="120" height="150" class="alignright size-full wp-image-213" />Ever seen <a href="http://www.youtube.com/watch?v=r8L39UwOS-Y">this Steve Jobs video?</a> That&#8217;s how we feel right now, Boom!</p>
<p>We&#8217;ve added an often-requested feature, kinda.</p>
<p>Some have complained that the search &#038; menu drop downs don&#8217;t work, along with the post-excerpt drop down functions, ajax, etc. Those effects are all done using Prototype-based javascript. On some installations, users may have other plugins which are loading similar scripts, and because WPtouch doesn&#8217;t interfere with the loading of those plugins, the scripts get loaded with WPtouch and effectively disable its effects and advanced features.</p>
<p>So we decided the best way around that was to create a fucntion which would change the way that javascript effects work with WPtouch, and bypass the loading of Prototype altogether. This has multiple advantages<span id="more-212"></span>:</p>
<ul>
<li>Fixes the broken drop downs, replacing them with DOM javascript actions</li>
<li>Kills 100KB of javascript from having to load, speeding up the loading of WPtouch considerably</li>
<li>Loading WPtouch-enabled sites over 3G is now FAST! Even on EDGE, the speed is now very comfortable (this depends on what other plugins you use, and the scripts they load, however)</li>
</ul>
<p>For those of you who have no issues with WPtouch the way it is, the advanced javascript will still load just fine, and the regular features that WPtouch employs will work just fine. You may want to try both, and see which you prefer.</p>
<h4>What&#8217;s Included?</h4>
<p>- In addition to the new javascript control feature, we&#8217;ve added: </p>
<ul>
<li>Proper styling of YouTube embedded videos in mobileSafari running on iPhone&#8217;s with the 2.0 software</li>
<li>We&#8217;ve also baked in a fix for some of you who had issues with the switch links (between WPtouch and your site&#8217;s regular theme)</li>
<li>A number of styling tweaks were made, cleaning up the appearance of shaded text, and some spacing issues for longer post and page titles</li>
<li>A number of corrections and cleanups for redundant code</li>
<p>The update is available through your WordPress admin panel for WordPress 2.5+ users, WordPress&#8217; <a href="http://wordpress.org/extend/plugins/wptouch/">plugin repository</a>, and through the website, <a href="http://www.bravenewcode.com/wptouch/">here</a>.</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.bravenewcode.com/2008/07/boom-wptouch-12-update/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Thinking 320&#215;480: Load-Time Considerations For The iPhone &amp; iPod touch</title>
		<link>http://www.bravenewcode.com/2008/05/thinking-320x480-load-time-considerations-for-the-iphone-ipod-touch/</link>
		<comments>http://www.bravenewcode.com/2008/05/thinking-320x480-load-time-considerations-for-the-iphone-ipod-touch/#comments</comments>
		<pubDate>Mon, 05 May 2008 06:47:29 +0000</pubDate>
		<dc:creator>Dale Mugford</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Journal]]></category>
		<category><![CDATA[WPtouch]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[bandwidth]]></category>
		<category><![CDATA[compression]]></category>
		<category><![CDATA[file size]]></category>
		<category><![CDATA[load times]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[Prototype]]></category>
		<category><![CDATA[Scriptaculous]]></category>

		<guid isPermaLink="false">http://www.bravenewcode.com/?p=121</guid>
		<description><![CDATA[While we were working on WPtouch it quickly became clear that we would have to start considering all the ways we could accomplish a full-featured theme in the lowest file size possible, something that I&#8217;m sure many developers have faced when building web-based applications for Apple&#8217;s devices. While at times frustrating and challenging, the knowledge [...]]]></description>
			<content:encoded><![CDATA[<p>While we were working on <a href="http://www.bravenewcode.com/wptouch/">WPtouch</a> it quickly became clear that we would have to start considering all the ways we could accomplish a full-featured theme in the lowest file size possible, something that I&#8217;m sure many developers have faced when building web-based applications for Apple&#8217;s devices. While at times frustrating and challenging, the knowledge we gained from working within the limitations of the iPhone/iPod touch added optimization skills into our work coffers- some of which we already employ now in our client developent. In short, speed and size consideration for Apple devices has made our regular web projects even more refined and incredibly fast. <span id="more-121"></span></p>
<div class="spacer"></div>
<h3>OVERWEIGHT AND BLOATED?</h3>
<p>Having taken the broadband world for granted, we wanted to include some <a href="http://en.wikipedia.org/wiki/AJAX">Ajax</a> functions and <a href="http://script.aculo.us/">Scriptaculous</a>-based effects naturally, to add &#8216;ohh and awe&#8217; to the theme. Though Scriptaculous (being built on the 90k <a href="http://www.prototypejs.org/">Prototype</a>) is heavy duty when it comes to mobile Safari&#8217;s capability to swallow it, and it soon proved to be a major blockade to developing the theme in the ways we had imagined.</p>
<p>I don&#8217;t have real-world stats for the comparison on hand as I write this, but our testing revealed that we&#8217;d have to explore other options to accomplish a lighter bandwidth footprint and still have the features we wanted, because it was disastrously slow.</p>
<p>Our preference was to use Scriptaculous, mostly because we were both familiar with it, and had a library of prepared code to draw up to speed up the development cycle. In short- <em>we were lazy and looking for a quick fix to the predicament.</em></p>
<p>Enter compression. Now, I don&#8217;t claim to be an authority on this matter, as are there who need to take advantage of compression for mission critical application use, but I do know that when it comes to the raw transfer time of compressed vs. uncompressed scripts that <strong>every kilobyte makes an enormous difference,</strong> <em>especially</em> when we&#8217;re talking <a href="http://en.wikipedia.org/wiki/Enhanced_Data_Rates_for_GSM_Evolution">EDGE</a> on the iPhone.</p>
<div class="spacer"></div>
<h3>SQUEEZING INTO THESE PANTS</h3>
<p>The combined weight of the javascript effects on WPtouch is a staggering 48kb. Consider that Prototype, Scriptaculous (Effects only) and some custom iPhone/iPod touch specific code is contained in that tiny package. Uncompressed, it was over 170kb. That savings (nearly 4 times smaller) changed the page load times dramatically, and allowed us to go forward with our Prototype/Scriptaculous plans.</p>
<div class="spacer"></div>
<h3>STYLE FIRST</h3>
<p>We used CSS wherever possible to provide colours and shapes, and if it weren&#8217;t for the fact that mobile Safari doesn&#8217;t support its big brother&#8217;s capability for <a href="http://webkit.org/blog/130/css-transforms/">CSS transforms</a>, we would have been able to skip out on Scriptaculous for effects and just transform everything using CSS only.</p>
<div class="spacer"></div>
<h3>A PICTURE IS WORTH A THOUSAND BYTES</h3>
<p>The same was true for images. Whenever I could, I used the smallest possible sizes for files using a combination of very tiny crops for repeating images, and the &#8216;Save for web&#8217; option in Photoshop. </p>
<p>I could have saved likely 50% more in file size if I had chosen .jpg as the predominant file type, but I really loved the quality that .png images provided. Early testing showed the difference in load times with .jpgs was nominal compared to the washouts I was seeing in colour with them.</p>
<div class="spacer"></div>
<h3>MORE WEIGHT TO LOSE</h3>
<p>We continue to trim and squeeze more weight out of WPtouch, and as we move towards adding new features it will certainly be something that will remain a constant challenge. With the advent of theme-capability for the plugin, we imagine that users themselves will come up with some dazzling examples of optimization- something we&#8217;re looking forward to seeing. In the mean time we&#8217;ll be focused on improving the theme as it is, and dabbling with <a href="http://mootools.net/">Mootools</a> and <a href="http://jquery.com/">jQuery</a> in compressed forms, along with other scripts available on the web for performing the functions we need will be explored.</p>
<p>What&#8217;s your experience with compression and file-size trimming? Have you got tricks we (and our readers) would love to know about?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bravenewcode.com/2008/05/thinking-320x480-load-time-considerations-for-the-iphone-ipod-touch/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
