TXJS and ScriptJunkie
I have been pretty neglectful of my blog since I started at Bazaarvoice, but I think I'm going to try to pick up a little bit. That being said, here's a short update.
I am now a featured author on ScriptJunkie - a new website from Microsoft about front end development. Check out my post "Building and Maintaining Large JavaScript Applications"
I'll likely cover a few more topics concerning large application structure in the future, both on my blog and on yayQuery and ScriptJunkie.
Also, TXJS happened. I'd suggest going to the totally awesome webpage and catching the slides and the speakerrate pages for all the talks to get caught up on how much awesomeness happened. Also, my fridge is still full of left over beer, so if you're in town... beer.js at my place.
I accidentally took a Nyquil today, thinking it was Dayquil, so I'll expand on some actual fun stuff soon enough.
Thanks to all 9 of you!
<3 Alex
June 16th, 2010 - 11:30
I just read your article “Building and Maintaining Large JavaScript Applications” and I liked it. Gave me lots of food for thought. I do however have a question about RequireJS. It only supports modern browsers, so what do you recommend for gracefully handling browsers it doesn’t support?
June 16th, 2010 - 11:37
RequireJS says it passes all unit tests on the following browsers:
“The unit tests work in IE 6+, Firefox 3.0+, Safari 4+, Chrome 3+, and Opera 10+.”
That’s pretty similar to the jQuery support, and a lot of javascript libraries for that matter. In some of the other browsers, it can do most of the basic things, just fine, but some of the more fine-grained controls stop working. I’d try to see which subset of the features of RequireJS you want to use is, and then test those features on those older browsers.
If you really needed to support those browsers, then you could feature test for them and then just include the javascript by script tags, instead. Though, the browser coverage we have here is well above the 98% mark, if I crunched those numbers correctly…
July 6th, 2010 - 08:17
Just as a followup – RequireJS 0.12 was just released and it “officially” supports the browsers that it worked on unofficially before.
http://github.com/jrburke/requirejs
IE 6+, Firefox 2+, Safari 3.2+, Chrome 3+, and Opera 10+
June 16th, 2010 - 11:55
I still have lots of FF 2.x users, so I’ll have to do a bunch of testing.
Have you used RequireJS on a live production site, yet?
June 16th, 2010 - 12:23
I generally use the trunk version of RequireJS and test it all with my sites anyways, but if you check out:
http://github.com/jrburke/requirejs/commit/4f1d192da7a388b998b0f0e96a2a918c66b35cfa
You’ll see it’s pretty close to having full FF2 support. It’s just a few little things, currently. I’d say its only a few weeks (or less) until official support is worked out.
June 16th, 2010 - 12:27
Here is a post from James Burke (the creator) on the issue:
http://groups.google.com/group/requirejs/browse_thread/thread/f1a6eca56d2ab00b?pli=1
He doesn’t test them, but he’s happy to fix bugs you report for them.