Blog
Categories
- Jun 07 2010
JavaScript Web Workers: Motörmouth is a Twitter Client
About a month ago, I released jQuery.Hive/Pollen, a plugin + library for developing jQuery applications that use Web Workers. And as per usual, the number one question is “what can I do with workers?”. With that in mind, I decided that at least every month (and hopefully even more frequently then that) I would produce […]
Continue ReadingJavaScript Web Workers: Motörmouth is a Twitter Client- Tagged in:
- performance,
- tools and workflow
- May 26 2010
Chrome 6: Server Push Events with new EventSource()
This is mighty awesome. I’ve put together some test demos, to run them you’ll first need to get this Chromium build: 47357 WIN32 47357 MAC 47357 32-Bit Linux 47357 32-Bit Linux Then download these: https://gist.github.com/415116 client.html <script src=”event-source.js”></script>; event-source.js document.addEventListener(‘DOMContentLoaded’, function () { var eventSrc = new EventSource(‘events.php’); eventSrc.addEventListener(‘open’, function (event) { console.log(event.type); }); eventSrc.addEventListener(‘message’, […]
Continue ReadingChrome 6: Server Push Events with new EventSource()- Tagged in:
- performance,
- tools and workflow
- May 26 2010
Javascript Web Workers: Chrome 5 Now Supports Complex Messages
After updating to Chrome 5 (specifically 5.0.375.55) last night I immediately ran some tests to see if the Web Worker API had been updated to support postMessage() arguments of types other than string. Turns out, it had. Here’s the test, plus the results: https://gist.github.com/414901 renderer.html <script src=”renderer.js”></script> renderer.js var worker = new Worker(‘worker.js’); worker.addEventListener(‘message’, function […]
Continue ReadingJavascript Web Workers: Chrome 5 Now Supports Complex Messages- Tagged in:
- performance,
- tools and workflow
- May 18 2010
Javascript Web Workers: From Basics to jQuery.Hive, Part III
I’m a jQuery enthusiast. Maybe even an evangelist. So I decided to make workers easy for my fellow jQuery developers – and thus was born the jQuery.Hive. Inititally it began it’s life as PollenJS a jQuery-looking library of functions that were light, useful and thread-safe. This was before the WebKit implementation existed so everything was […]
Continue ReadingJavascript Web Workers: From Basics to jQuery.Hive, Part III - May 18 2010
Javascript Web Workers: From Basics to jQuery.Hive, Part II (Browser Implementations)
As I mentioned in Part I, the Web Worker API is available for use in Firefox 3.5+, Safari 4+ and Chrome 4+, however the implementations are inconsistant. This has been completely overlooked by every single tutorial I’ve found. The issue revolves around the accepted argument to postMessage() (from both the main window and the worker). […]
Continue ReadingJavascript Web Workers: From Basics to jQuery.Hive, Part II (Browser Implementations) - May 17 2010
Javascript Web Workers: From Basics to jQuery.Hive
This is long overdue. Also, it should serve as a context for my slides from jQuery Conference, San Francisco 2010 (use the up and down arrow keys to navigate). Whether or not you’ve read the WHATWG Web Worker spec and are looking for more information about Javascript multi threading OR you already have a rudimentary […]
Continue ReadingJavascript Web Workers: From Basics to jQuery.Hive - Apr 30 2010
Web Audio – All Aboard!
In this post I will talk about Mozilla’s Web Audio Data API. I will cover where we have come from, demonstrate some of the incredible results that have already been achieved; I will talk about why audio in the browser is so important, take a look at where we are headed and explore some of […]
Continue ReadingWeb Audio – All Aboard! - Apr 26 2010
CSS SVG-Filters Elem.style & xlink:href=”url(#id)” #fail
I have been playing around with SVG Filters a lot over the last few weeks and I have to say that the SVG Filters are a) really freekin’ cool and b) powerful in ways yet undiscovered. When these things land cross-browser, it will really polish off the modern web-app paradigm, adding a level of depth […]
Continue ReadingCSS SVG-Filters Elem.style & xlink:href=”url(#id)” #fail- Tagged in:
- design,
- performance
- Apr 19 2010
Publish/Subscribe with jQuery Custom Events
The Publish Subscribe or pub/sub pattern is used to logically decouple object(s) that generate an event, and object(s) that act on it. It is a useful pattern for object oriented development in general and especially useful when developing asynchronous Javascript applications. This post explores its implementation in jQuery. The Dojo javascript framework provides an explicit […]
Continue ReadingPublish/Subscribe with jQuery Custom Events- Tagged in:
- performance,
- tools and workflow
- Apr 12 2010
JavaScript Enumerable.Map() with WebWorkers
For those with short attention spans, here’s how you call the function: map(enumerable, mapFunction, callback, numWorkers); I wanted an easy way to divide up a parallelizable task with Web Workers, so I create a Worker enabled Map function for arrays and objects. It works just like the map function in your favorite functional languages, except […]
Continue ReadingJavaScript Enumerable.Map() with WebWorkers- Tagged in:
- performance,
- tools and workflow