Recent Posts
Recent Posts Tagged With 'javascript'
Extreme JavaScript optimization
Dec 20 This article is part of the 2009 performance advent calendar experiment. Today's article is a second contribution from Ara Pehlivanian (here's the first). Ara Pehlivanian has been working on the Web since 1997. He's been a freelancer, a webmas...
The new game show: “Will it reflow?”
Dec 19 This post is part of the 2009 performance advent calendar experiment. Stay tuned for the articles to come. Intrigued by Luke Smith's comment and also Alois Reitbauer's comment on the previous post about rendering I did some more testing with d...
DOM access optimization
Dec 18 This post is part of the 2009 performance advent calendar experiment. Stay tuned for the articles to come. This blog series has sailed from the shores of networking, passed down waterfalls and reflows, and arrived in ECMAScriptland. Now, turns...
Rendering: repaint, reflow/relayout, restyle
Dec 17 This post is part of the 2009 performance advent calendar experiment. Stay tuned for the articles to come. Nice 5 "R" words in the title, eh? Let's talk about rendering - a phase that comes in the Life of Page 2.0 after, and sometimes during, ...
JavaScript loading strategies
Dec 15 This article is part of the 2009 performance advent calendar experiment. Today's article is a contribution from Ara Pehlivanian, author of two JavaScript books. Please welcome Ara and stay tuned for the articles to come. Ara Pehlivanian has be...
Reducing the payload: compression, minification, 204s
Dec 11 This post is part of the 2009 performance advent calendar experiment. Stay tuned for the next articles. After removing all the extra HTTP requests you possibly can from your waterfall, it's time to make sure that those that are left are as sma...
Duplicates and near-duplicates
Dec 9 This post is part of the 2009 performance advent calendar experiment. Stay tuned for the next articles. One of Yahoo!'s first batch of performance best practices has always been "Avoid duplicate scripts" (check Steve Souders' post). Later we ad...
Reducing the number of page components
Dec 5 This is the fifth in the series of performance articles as part of my 2009 performance advent calendar experiment. Stay tuned for the next articles. Let's talk a but about waterfall optimization - the first thing that happens in Mr.Page's life....
Performance tools
Dec 2 This is the second in the series of performance articles as part of my 2009 performance advent calendar experiment. Stay tuned for the next articles. While theoretically you can speed up your site by just blindly following advice from this blog...
Statsy - more data points for markup quality
In the spirit of the content-to-markup ratio bookmarklet, here's another one that gives you some more data points to help you judge the quality of a page's markup and help answer the old question - where does all this page weight go. Install the sta...
Browser’s implied globals
Like it's not bad enough that JavaScript has implied globals (forget var and you create a global), but the browsers have decided it's a good idea to add more pollution to the global namespace. This has been a source of frustration before with IE, it'...
cssmin.js
cssmin.js is a JavaScript port of YUICompressor's CSS minifier. The motivation Minifying CSS helps reduce file sizes and makes your pages faster and your users happier. YUICompressor is cool but is written in Java, which can be a blocker for some fol...
JavaScript shell scripting
As you probably know, JavaScript is not limited to the browser. There's server-side JavaScript, JS for various extensions, you can script Photoshop operations with JavaScript if you feel like it. Or compile Windows executables. You see where I'm goin...
The art and craft of postload preloads
What can your tired old page, once loaded and used and read, can do for your user? It can preload components needed by the next page, so when the users visit the next page, they have the new scripts, styles and images already in the cache. Next page ...
Book things
In the spirit of tooting one's own horn.... Top 3 This morning I noticed my OOJS book is #3 in Amazon's JavaScript category, wo-hoo! Then it dropped down but in the evening it's up again. Nice company - OOJS, Doug Crockford's book and David Flanagan...
Slides from JSConf
I'm back from the most excellent JSConf (JavaScript Conference) in Washington D.C. I'm tired and need sleep but the conference was, hands down, the best conference I've ever attended. It was all about the community, it was inexpensive, with parties a...
Relative to absolute links with JavaScript
I was toying with a completely different thing and specifically a Yahoo service that gives you the ability to use HTML as data and then lets you use xpath to query this data. I came up with a somewhat interesting idea (will post tomorrow, too late no...
FireEagle and geo-location fun
FireEagle is a newer service from Yahoo, it's an API and service that stores your geo-location and lets other application read or update it. With your permission, of course. Now there's a FireEagle Firefox extension, still marked experimental in Add...
Content-to-markup ratio bookmarklet
When you care about performance, or SEO (or just doing a good job as web dev) an interesting data point is the ratio of page content vs. the markup used to present this content. Or... how much crap we put in HTML in order to present what the users wa...
Replace the Home button with a script
Robert Ames commented on my previous post suggesting replacing the Home button with my little site search bookmarklet. I didn't even know this was possible, but I found it pretty cool, so I just had to try. x-browser I tried this in Firefox/Mac and I...
Search site bookmarklet with YUI and BOSS
Ever wanted to search only the web site you're currently on? Not the page, but the whole site. And only this site, not the rest of the web. This bookmarklet does just that. Install Right-click this link and add to your bookmarks/favorites. Or just dr...
JSLint on Mac + TextMate integration
JSLint is an indispensable tool if you're serious about your JavaScript code quality. You can run it online for curiosity but for real development it has to be part of your coding environment and just a click/keystroke away. While on PC I integrated ...
Installing Rhino on Mac
To quote http://www.mozilla.org/rhino/: Rhino is an open-source implementation of JavaScript written entirely in Java. It is typically embedded into Java applications to provide scripting to end users. Rhino allows you to use JavaScript: on the serv...
>>> $$(selector)
Gotta love the Firebug console, how can anyone not love the Firebug console. It makes testing random pieces of JavaScript a breeze and best of all - you're playing with the live page. Your page or any page for that matter. Two nice shortcuts you can ...
smush.it update
What's new in smush.it? The old domain smushit.com now redirects to the new one smush.it, which is what we originally intended but the domain registration took a while and we quickly got smushit.com just in time for the Ajax Experience announcement ...
Short Amazon affiliate links - a bookmarklet
It's a pain to link to a specific product on Amazon if you have to use their UI to build an affiliate link. It's good to have nice, clean and short affiliate links. This post gives you the details and also a bookmarklet to built the links by visiting...
Javascript console in IE
I'm a sucker for consoles. The ability to quickly type some code and see it executed right then and there... priceless. That's why I'm a huge fan of Firebug's JavaScript console. But what about IE? option 1 - Firebug lite Firebug lite is a lighter ve...
JavaScript’s class-less objects
"JavaScript's class-less objects" article up at the JavaRanch's newsletter. Update: and mentioned on Ajaxian, sweet....
OOJS book free chapter 8 on YUIblog
Chapter 8 of the Object-Oriented JavaScript is available at the YUIblog.com. Enjoy! Chapter 2 is also available at the publisher's site. Probably thanks to YUIBlog, the book was #7 in the JavaScript category on Amazon today, not bad. It's the highest...
At the (Java)Ranch this week
There's a book promotion event this week at the JavaRanch's HTML and JavaScript forum, ranchers are asking all kinds of interesting questions about my OOJS book. There will be a free book giveaway at the end of the week, so come in and join the fun. ...
