サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
ドラクエ3
johnresig.com
A new method signature is slated for jQuery 1.4: .closest(Array). It builds upon the previous .closest() method and hyper-optimizes the logic needed for handling event delegation (and live events). closest() (and by extension, is()) has become a critical function in jQuery. With more people using live events reducing any overhead has become of the utmost importance. Every time an event fires that
When working with the DOM .nodeName property there are two hard-and-fast rules that most people abide by: The node names of HTML elements are always uppercase, even if they’re explicitly created using lowercase characters. <html> will result in a .nodeName === "HTML" (see the HTML 5 draft). The node names of XML elements are always in the original case, as specified when they’re created. <data> wi
After reading a recent post by Steve Souders concerning a free tool called dynaTrace Ajax, I was intrigued. It claimed to provide full tracing analysis of Internet Explorer 6-8 (including JavaScript, rendering, and network traffic). Giving it a try I was very impressed. I tested against a few web sites but got the most interesting results running against the JavaScript-heavy Gmail in Internet Expl
As far as I’m concerned, Google Groups is dead. For the jQuery project we’ve run all of our community discussions through Google Group mailing lists for the past three years. At this moment the main jQuery group is the second most popular programming group (next to Android developers) clocking in at over 21,000 members. We also have the jQuery Dev and jQuery UI groups. The main jQuery group averag
This past weekend was the 2009 jQuery Conference here in Boston. It was an incredible event – 300 people attended and a ton of discussion, collaboration, and learning happened. Nearly the entire jQuery project team had the opportunity to meet for two days prior to the conference and hash a number of things out – figuring out most of the planning for the upcoming year. The core dev team also had th
I’ve been slowly working on a new JavaScript book that covers many of the specifics behind how and why JavaScript libraries are designed they way that they are – titled Secrets of the JavaScript Ninja. I’m still working on the book – I have four chapters left to write – and am hoping to have it completed this year. Incidentally Manning Publishing is running a special (today only!) offering the ebo
TestSwarm, the project that I’ve been working on over the past 6 months, or so, is now open to the public. Mozilla has been very gracious, allowing me to work on this project exclusively. At the beginning of April I moved from my old position as a JavaScript Evangelist on the Mozilla Evangelism team to that of a JavaScript Tool Developer on the new Developer Tools team (whose other major project i
Unfortunately I’m short on time at the moment (trying to launch a project this week) but I have to say, at least, a few words about the hacker and artist _why. At this moment, _why’s online presence appears to be no more. All of his sites and code are gone. This includes, and is not limited to: http://twitter.com/_why http://github.com/why http://whytheluckystiff.net/ http://poignantguide.net/ htt
Web Workers are, undoubtedly, the coolest new feature to arrive in the latest version of web browsers. Web Workers allow you to run JavaScript in parallel on a web page, without blocking the user interface. Normally in order to achieve any sort of computation using JavaScript you would need to break your jobs up into tiny chunks and split their execution apart using timers. This is both slow and u
Ever since I saw the Bit.ly JavaScript API I’ve been wanting to build a simple script for tracking the number of people visiting a blog post from Twitter. This past weekend I built a little script for doing just that – and in a completely unobtrusive manner. The script itself is completely standalone (no dependencies) and can be included in any page relatively painlessly. Additionally, since it’s
One of the biggest wins of the HTML 5 recommendation is a detailed specification outlining how parsing of HTML documents should work. For too many years browsers have simply tried to guess and copy what others were doing in hopes that their parser would work well enough to not cause too many problems with HTML markup found in the wild. While some parts of HTML 5 are certainly more contentious than
The video from my talk at JSConf has been posted. Thanks to Chris for organizing the conference and the excellent quality of the video. The description from the JSConf site summarizes the talk well: John Resig presents his mystery topic, which is actually three topics that strike his interest. First up is measuring performance and a quick introduction to benchmarking (and its positives and negativ
I’m in the process of working on, and improving, test suite support in TestSwarm (an upcoming project of mine). However, there isn’t a lot of information on which unit testing frameworks developers actually use to test their code (whereas there is more information on which JavaScript libraries are used). It will be of great help to me if you could quickly fill out the question below. I will releas
I just posted a run down of some of the new DOM Traversal APIs in Firefox 3.5. The first half of the post is mostly a recap of my old Element Traversal API post. The second half of the post is all about the new NodeIterator API that was just implemented. For those that are familiar with some of the DOM TreeWalker APIs this will look quite familiar. It’s my opinion, though, that this API is, at bes
Previously I analyzed ECMAScript 5’s Object and Property system. This is a huge new aspect of the language and deserved its special consideration. There are a number of other new features and APIs that need attention, as well. The largest of which are Strict Mode and native JSON support. Strict Mode is a new feature in ECMAScript 5 that allows you to place a program, or a function, in a “strict” o
ECMAScript 5 is on its way. Rising from the ashes of ECMAScript 4, which got scaled way back and became ECMAScript 3.1, which was then re-named ECMAScript 5 (more details)- comes a new layer of functionality built on top of our lovable ECMAScript 3. Update: I’ve posted more details on ECMAScript 5 Strict Mode, JSON, and More. There are a few new APIs included in the specification but the most inte
One of my favorite sources of active mining is that of Peter-Paul Koch digging in to mobile browsers and how they behave. Sponsored by Vodaphone to do a study of various mobile devices and their respective browsers, PPK has been doing some serious analysis of what the landscape looks like. Armed with a battery of tests he analyzes the various browsers manually (a painstaking task) but it yields so
Thanks to some generous contributions, there now exist well-designed web sites for two projects of mine: Processing.js and Sizzle.js. Processing.js was released almost a year ago (May 8th of last year) and it finally has an official web site. At this point the project is being primarily maintained by Alistair MacDonald (on Twitter) with active discussions taking place on the Processing.js Google G
(This is a follow-up on my portion of the More Secrets of JavaScript Libraries panel at SXSW.) It’s become increasingly obvious to me that cross-browser JavaScript development and testing, as we know it, does not scale. jQuery’s Test Suites Take the case of the jQuery core testing environment. Our default test suite is an XHTML page (served with the HTML mimetype) with the correct doctype. In incl
This past weekend I had the pleasure of attending and presenting at the annual SXSW conference, down in Austin, TX. I participated in a panel discussion called ‘More Secrets of JavaScript Libraries’ (a follow-up panel to last year’s talk). The synopsis was as follows: In a reprise from last year’s popular panel – the JavaScript libraries authors are getting together again to impart their what they
With jQuery 1.3.2 out the door I’ve been looking for more ways to profile and optimize jQuery. Previously I did a survey of jQuery-using sites to figure out which selectors they were using. This led to the construction of the new Sizzle Selector Engine which targeted those selectors for improvement. Additionally, I constructed a deep profiling plugin for jQuery which helped to spot methods that we
A very interesting paper was just published by Microsoft Research that details a browser construction that acts more like an operating system, partitioning off resources only to those who need it. Although our architecture may seem to be a straightforward application of multi-principal OS construction to the browser setting, it exposes intricate problems that didn’t surface in previous work, inclu
Last year I did some work on implementing a Selectors API Test Suite, which I’ve just updated to run in IE 8. I’ve uploaded a copy of the suite here: https://johnresig.com/apps/selectortest/ You can get the source here: http://github.com/jeresig/selectortest/tree/master For right now I’m getting the following result: WebKit Nightly 99.3% (16 failing – doesn’t support complex :not() expressions) Fi
I gave a talk last week at Google (at the request of the excellent Steve Souders) all about the performance improvements, and new APIs, that are coming in browsers. I cover the new browsers, their JavaScript engines, their JavaScript performance, and then do a whirlwind tour of their new DOM methods and some of their new CSS APIs. Posted: February 5th, 2009 Subscribe for email updates 36 Comments
I gave a talk last week at Yahoo (at the request of the YUI team) all about the DOM. I outlined some of the reasons why the current situation is such a mess, outline some strategies for working around it, and then give some examples of real world code that’s being implemented in libraries today. Posted: February 2nd, 2009 Subscribe for email updates 56 Comments (Show Comments) Comments are closed.
A pretty amazing piece of JavaScript dropped yesterday and it’s going to take a little bit to digest it all. It’s a GreaseMonkey script, written by ‘Shaun Friedle‘, that automatically solves captchas provided by the site Megaupload. There’s a demo online if you wish to give it a spin. Now, the captchas provided by the site aren’t very “hard” to solve (in fact, they’re downright bad – some examples
It’s safe to say that the biggest tax on a web developer is spending so much time dealing with browser bugs and incompatibilities. Thus it has become the favorite past-time of all web developers to complain about having to deal with them. Browser bugs are annoying, frustrating, and make your job incredibly difficult. Because browser bugs are so frustrating and such a burden on top of normal develo
In my work with the Firebug team over the past couple months I’ve been working with Jan Odvarko on a way to provide some form of unit testing that we can build off of. The result of my work is a new Firefox/Firebug extension called FireUnit. FireUnit provides a simple JavaScript API for doing simple test logging and viewing within a new tab of Firebug. For example, here’s some of the API that you
The other day I was looking at pyjamas (which bills itself as a GWT-like tool for Python). I was also reminded of the semi-recent release of Objective-J. Pyjamas, GWT, and Objective-J all hinge around a central concept: Abstracting away the authoring of JavaScript-heavy web applications by allowing the developer to program entirely in their natively language (be it Python, Java, or an Objective-C-
次のページ
このページを最初にブックマークしてみませんか?
『John Resig - JavaScript Programmer』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く