Web Development

Smart Optimizer

June 6th, 2008  |  Published in CSS, Javascript, Web Development

One of the bigger problems I see in the performance space is that a lot of the value of current content management systems and blogging tools is the ability to add widgets or plugins from a lot of different places. These plugins often do not provide compressed and cacheable versions of their content.

In order to get more people to adopt the methods of creating faster web pages, we need to make it easier for them to do so while still a making it easy for them to adhere to performance guidelines. Basically, make it possible for them to eat cat and lose weight at the same time.

I’ve spent part of last evening looking for plugins for Wordpress that will find any javascript or css files, combine them into a single file, minify and gzip them, and then set far future expires headers. I’ve got a dream plugin in mind and none of them are quite living up to my fantasy.

One solution that comes close to being my dream is a piece of software called Smart Optimizer. Smart Optimizer used to be called JSmart. It was a project that hadn’t had any updates since July 7, 2006 until two weeks ago when the project was revitalized and the name changed.

Smart Optimizer will:

  • Set up rewrite rules to intercept any calls to css or js files
  • Minify, gzip any css or js files
  • Creates static files on the server for css and js that are gzipped and set for caching
  • Concatenate css or js files into a single file

It’s an interesting tool that I don’t think a lot of people know of. Take a look.

Speed Up Your AJAX With Google AJAX Libraries

June 3rd, 2008  |  Published in AJAX, Javascript, Web Development

Dion Almaer of Google and Ajaxian.com announced late last week the AJAX Libraries API. If you use AJAX, you’ll want to pay attention to this announcement. What does it mean?

Popular AJAX libraries including:

  • jQuery
  • prototype
  • script.aculo.us
  • MooTools
  • dojo

are now being hosted on Google’s servers for use on your site or applications. Why would you link to a file hosted on Google’s server? Because it is optimized for speed by providing the libraries in the following way:

  • Gzipped
  • Minified
  • Far future expires headers to increase caching
  • Delivered using Google’s extensive content delivery network

They are providing multiple versions of each library and even include a javascript loader for the libraries. For more on the benefits of this service, check out Steve Souder’s coverage and Dion’s extensive information on Ajaxian.

If you are using any of these AJAX libraries, you would be foolish not to seriously consider taking advantage of this service.

New, Faster Version of jQuery Released

June 3rd, 2008  |  Published in AJAX, Javascript, Web Development

“A new release of jQuery is out — 1.2.6, skipping directly from 1.2.3. Most noteworthy are the performance improvements.” via Ajaxian. Further details in the release notes.

Updates on How Long People Will Wait for a Page to Load

May 30th, 2008  |  Published in Site Performance, Web Development

Andrew King has a new post up highlighting recent research on how long people will wait for a page to load. Previously, the magic number was 10 seconds, but broadband has decreased our patience for slow sites.

A JupiterResearch survey found that 33% of broadband shoppers are unwilling to wait more than four seconds for a web page to load, whereas 43% of narrowband users will not wait more than six seconds (Akamai 2006).

and

Google found that moving from a 10-result page loading in 0.4 seconds to a 30-result page loading in 0.9 seconds decreased traffic and ad revenues by 20% (Linden 2006).

Plus a very real impact on sales:

Tests at Amazon revealed similar results: every 100 ms increase in load time of Amazon.com decreased sales by 1% (Kohavi and Longbotham 2007).

German Interview with Google’s Eric Schmidt

May 29th, 2008  |  Published in Business, Marketing, Mobile, Search Engines, Web Development

Google CEO Eric Schmidt sat down with the Frantfurter Allgemeine (FAZ.net) to discuss things mobile and social networks among other things.

On mobile:

Just take the success of the iPhone: It has the first really powerful web browser on a mobile device - and many more are still coming. Nokia has one coming, Blackberry has one and Motorola has one. They are all supposed to be released this year. By these products, the advertising gets more targeted because phones are personal. So targeted ads are possible. And that means the value of the ads will grow. The next big wave in advertising is the mobile internet.

On social networks:

MySpace did not monetize as well as we thought. We have a lot of traffic, a lot of page views, but it is harder than we thought to get our ad network to work with social networks. When you are in social network, it is not likely that you´ll buy a washing machine.

Some good stuff in there. I recommend the full article.

Test Multiple Versions of IE in One Application

May 29th, 2008  |  Published in Web Development

Via Ajaxian today: A new, free tool that lets you test IE8, 7, 6, and 5.5 in the same application. It is called IETester and is from the gentleman who created the DegugBar for IE. Download it here.

Slideshow of the Day

May 25th, 2008  |  Published in Announcements, Mobile, Portland, Uncategorized, Web Development

My Web Visions presentation has been selected as the “Slideshow of the Day” on Slideshare.net. You can view the presentation here. Or use the embedded version of it below.

As soon as the conference organizers post the audio recording of the presentation, I’ll link to that as well. Some of my slides require explanation.

Thanks to everyone who attended my session and to Slideshare.net for featuring my slides.

Wordpress 2.5 Removes GZIP Option

May 18th, 2008  |  Published in Apache, Site Performance, Web Development

Wordpress 2.5 no longer provides an option to turn on gzip compression. According to Matt Freedman, the “option was axed for the reason that it’s better to enable compression on the server, rather than through WordPress.”

This is probably true because the option was turning on php compression instead of setting it in apache. However, it was still a surprise to realize my site was no longer being compressed.

To remedy the problem, I added the following to my .htaccess file in the root directory:


AddOutputFilterByType DEFLATE text/html text/css text/plain text/xml application/x-javascript application/json application/x-httpd-php application/x-httpd-fastphp application/rss+xml application/atom_xml application/x-httpd-eruby
Header append Vary Accept-Encoding

This is the code for Apache 2.0 as suggested by Ryan Williams. Similar code for Apache 1.3 can be found.

The main point is the if you used to rely on Wordpress 2.5’s gzip option, you’re going to need to find an alternate solution.

Firefox for Mobile Devices

May 18th, 2008  |  Published in Announcements, Mobile, Portland, Web Development

I’m quite excited about this month’s Mobile Portland meeting. Dietrich Ayala from Mozilla will be presenting the future of Firefox for mobile devices.

I’m greatly looking forward to learning more about the Mozilla plans. It seems like webkit has taken a lead in the open source mobile browser space. IE has a larger installed base, but the browser renders poorly. Opera is great, but not open source.

So far, Mozilla’s plans for mobile have been unclear to me other than their obvious statements of plans to support mobile devices. I’m anxious to hear when their plans and timelines.

Firefox is my workhorse browser for development. I wonder what, if any, of the plugins that I rely on for development might work in the mobile space.

If you have any of these questions or others, I encourage you to RSVP and attend this meeting.

Mobile Browser Test

April 28th, 2008  |  Published in Announcements, Mobile, Site Performance, Web Development

We need your help for a research project we’re conducting at Cloud Four. Read more about the research and how you can help by simply viewing a web page on your mobile phone.